Wierd problem with CommandText
#1

Hello guys.

I got a problem, i would like to add more than 1 command to use, i got /setskin, and it sets my skin to ID 19, but if i try to script in any other things, like /kick, etc, it wont work.

Pastebin link here : http://pastebin.com/m7d6220e5

Regards Alex.
Reply
#2

You are not returning a value after the command. Put this:

pawn Код:
if(strcmp(cmdtext, "/kick", true ) == 0) )
    {
      // Kick
      Kick(playerid);
      return 1;
}
Reply
#3

It dosent give me any warnings or errors anymore, but the command dosent work now.

My script looks like this now.

http://pastebin.com/m7c3370c0

Regards.
Reply
#4

return 0; at the end, instead of 1.
Also, /kick command will kick the one who types it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)