help OnPlayerText if(text[0] == error
#2

Text is a string, use strcmp to compare them.
== is for integers and floats.

pawn Код:
if (!strcmp(text[0], "1", true))
or
pawn Код:
if (strcmp(text[0], "1", true) == 0)
Reply


Messages In This Thread
help OnPlayerText if(text[0] == error [SOLVED] - by UserName31 - 30.07.2014, 21:05
Re: help OnPlayerText if(text[0] == error - by Stinged - 30.07.2014, 21:14
Re: help OnPlayerText if(text[0] == error - by UserName31 - 30.07.2014, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)