OnPlayerText bugged
#1

-
Reply
#2

Judging by that code you posted you shouldn't be seeing "Val seted to 100.", since you are using wrong the strcmp function.
The if should be:

pawn Код:
if ((!strcmp("setval", text, true) && (strlen(text) == strlen("setval")))
or

pawn Код:
if ((strcmp("setval", text, true)==0 && (strlen(text) == strlen("setval")))
Since strcmp returns 0 if the strings are identical.
Reply
#3

Yea , my fault on the forum , but in script i used if(strcmp(...,...,true) == 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)