HouseMD Posted May 7, 2007 Share Posted May 7, 2007 I'm trying to find stuff in "$4" eg !, I tried $Gettok, $Findtok or $istok and i couldn't get them to work....plz help Link to comment
damnet007 Posted May 7, 2007 Share Posted May 7, 2007 If you're trying to do what I think, use "isin" if (... isin $4) or if (... isin $4-) Link to comment
JB_frozen Posted May 7, 2007 Share Posted May 7, 2007 you mean finding things in $4 and more? try this $4- Link to comment
SanZoR Posted May 8, 2007 Share Posted May 8, 2007 $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' Link to comment
lil Toady Posted May 8, 2007 Share Posted May 8, 2007 $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
HouseMD Posted May 8, 2007 Author Share Posted May 8, 2007 and liltoady, I did /help and didn't find anything helpful (Since i tried it before) and no... I mean like if $4 = !test, then i want to see if it has the "!", so it will say a message when $4 = Test. Link to comment
SanZoR Posted May 8, 2007 Share Posted May 8, 2007 $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
damnet007 Posted May 8, 2007 Share Posted May 8, 2007 lol i'm still not 100% sure what you want, but how about this: if ($chr(33) isin $4) !return $remove($4,$chr(33)) but that won't work well if the ! isnt at the start- if someone typed ... !blah!kjd Link to comment
lil Toady Posted May 9, 2007 Share Posted May 9, 2007 if ($left($4,1) == $chr(33)) mta.text $1 $right($4,-1) Link to comment
Recommended Posts