Jump to content

Finding stuff in text!


HouseMD

Recommended Posts

$4- works like this:

If script is !lol, and you type it like !lol someone, and there's a $4- in mta.text, it will displays it like this: Player is laughing out loud at 'someone'

you are wrong..

$4- means that it will use all the parameters since $4 ($4 $5 $6 $7...$n)

example:

on *:SIGNAL:mta.command:{
 if ($3 == !test) test i am sooo cool, better than anyone in the world!
}
alias test {
 mta.text $1 $5-
 ; $1 = 'i', $2 = 'am', $3 = 'sooo', $4 = 'cool,', $5 = better, etc.
 ; so this one will return 'better than anyone in the world!' (since the fifth parameter and further)
}

Link to comment
$4- works like this:

If script is !lol, and you type it like !lol someone, and there's a $4- in mta.text, it will displays it like this: Player is laughing out loud at 'someone'

you are wrong..

$4- means that it will use all the parameters since $4 ($4 $5 $6 $7...$n)

example:

on *:SIGNAL:mta.command:{
 if ($3 == !test) test i am sooo cool, better than anyone in the world!
}
alias test {
 mta.text $1 $5-
 ; $1 = 'i', $2 = 'am', $3 = 'sooo', $4 = 'cool,', $5 = better, etc.
 ; so this one will return 'better than anyone in the world!' (since the fifth parameter and further)
}

Well, yes is you put those in 'var'...

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...