when i type in the command, it saids server unknow command - 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)
+--- Thread: when i type in the command, it saids server unknow command (
/showthread.php?tid=451611)
when i type in the command, it saids server unknow command -
Chrisli520 - 17.07.2013
Код:
if(strcmp(cmd, "/spayday", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
PayDay();
}
}
return 1;
}
Re: when i type in the command, it saids server unknow command -
thimo - 17.07.2013
Be sure there is return 1 under onplayercommandtext
Re: when i type in the command, it saids server unknow command -
_Khaled_ - 18.07.2013
make sure you're admin 1337 or more.
Re: when i type in the command, it saids server unknow command -
MP2 - 18.07.2013
Why are you using IsPlayerConnected? Since when can a player that is NOT ON THE SERVER, type a command ON THE SERVER?
Perhaps PayDay(); is causing a crash. Print debug messages to find out.