Jump to content

Finding stuff in text!


HouseMD

Recommended Posts

Posted

$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'

Posted
$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)
}

Posted

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.

Posted
$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'...

Posted

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

  • Recently Browsing   0 members

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