Unknown Command
#2

pawn Код:
if(strcmp(cmdtext, "/i use", true))
If the strings are the same, strcmp returns 0. What you do is call the command if the returned value is 1.
Try
pawn Код:
if(!strcmp(cmdtext, "/i use", true))
    //rest
Placing a '!' before strcmp should work.

OR

You can place a == 0 behind it. It would look like this

pawn Код:
if (strcmp("/i use", cmdtext, true) == 0)
 //rest
I hope this helps you further
Reply


Messages In This Thread
Unknown Command - by DarkLored - 11.05.2014, 02:42
Re: Unknown Command - by Jstylezzz - 11.05.2014, 08:39
Re: Unknown Command - by DaniceMcHarley - 11.05.2014, 08:44
Re: Unknown Command - by DarkLored - 11.05.2014, 13:38
Re: Unknown Command - by Konstantinos - 11.05.2014, 13:47
Re: Unknown Command - by DarkLored - 11.05.2014, 13:55

Forum Jump:


Users browsing this thread: 2 Guest(s)