SA-MP Forums Archive
Commands dont work ?!? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Commands dont work ?!? (/showthread.php?tid=153535)



Commands dont work ?!? - BiG_bEaR - 09.06.2010

Why don't the commands work , when I right a command and it doesn't do anything , and when I write a command , which I don't have in the GM ,it doesn't show the message where the server says that there isn't a command like that ?!?


Re: Commands dont work ?!? - DJDhan - 09.06.2010

Hehe, make sure you have
Код:
return 1;
after every command,

Eg:
Код:
OnPlayerCommandText(playerid,cmdtext)
{
  if(!strcmp(cmdtext,"/kill",5,true))
  {
     SetPlayerHealth(playerid,0.0);
     return 1;
  }
  return 1;
}



Re: Commands dont work ?!? - BiG_bEaR - 09.06.2010

I do


Re: Commands dont work ?!? - Hiddos - 09.06.2010

Did you exit OnPlayerCommandText with a 'return 0'?


Re: Commands dont work ?!? - BiG_bEaR - 10.06.2010

Yes


Re: Commands dont work ?!? - BiG_bEaR - 10.06.2010

Any more ideas