How to make this?
#3

Inputtext is a string and you don't use "==". If is a number you can use "strval". Example:

pawn Код:
if(strval(inputtext) == 2012)
{
// Functions
}
If is a string with word you can use "strcmp". Example:

pawn Код:
if(strcmp(inputtext,  "Hello", true) == 0)
{
//Functions
}
Visit this post in Wiki SAMP for strcmp -> https://sampwiki.blast.hk/wiki/Strcmp
Reply


Messages In This Thread
How to make this? - by Cjgogo - 21.04.2011, 08:32
Re: How to make this? - by Zh3r0 - 21.04.2011, 08:43
Re: How to make this? - by mitosking - 21.04.2011, 08:43
Re: How to make this? - by Cjgogo - 21.04.2011, 08:46
Re: How to make this? - by mitosking - 21.04.2011, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)