How can I do an "if" with "inputtext"?
#2

Yes with strcmp.

pawn Код:
if(!strcmp(inputtext, "MyTextIwan'tmatch", true)) {
   
}
Edit: If you wan't make sure it's a interger use this.

pawn Код:
new MyAge = strval(inputtext);
if(MyAge >= myvalue) ....
Reply


Messages In This Thread
How can I do an "if" with "inputtext"? - by Miikkel - 06.07.2010, 12:25
Re: How can I do an "if" with "inputtext"? - by Carlton - 06.07.2010, 12:27
Re: How can I do an "if" with "inputtext"? - by Betamaster - 06.07.2010, 12:28
Re: How can I do an "if" with "inputtext"? - by Miikkel - 06.07.2010, 12:28
Re: How can I do an "if" with "inputtext"? - by DJBluefader - 06.07.2010, 12:30
Re: How can I do an "if" with "inputtext"? - by Carlton - 06.07.2010, 12:33
Re: How can I do an "if" with "inputtext"? - by DJBluefader - 06.07.2010, 12:34
Re: How can I do an "if" with "inputtext"? - by Miikkel - 06.07.2010, 12:37

Forum Jump:


Users browsing this thread: 5 Guest(s)