No commands are working - 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: No commands are working (
/showthread.php?tid=201250)
No commands are working -
litesp - 20.12.2010
commands stopped working on my server. It says SERVER: Unknown command.
I can't do /kill or anything i just get the Unknown command message, anyone know what the problem is?
Re: No commands are working -
blackwave - 20.12.2010
If you don't post the code you have, nobody else can guess where's the problem at, and even can't resolve.
Post your code.
Re: No commands are working -
litesp - 20.12.2010
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
GivePlayerMoney(playerid, -250);
return 1;
}
return 0;
}
Re: No commands are working -
blackwave - 20.12.2010
Post the whole script you do use. I had the same problem once.
Re: No commands are working -
litesp - 20.12.2010
http://pastebin.com/Rt1rkxV0
Re: No commands are working -
blackwave - 20.12.2010
Remove from the top:
pawn Код:
#include <zcmd> // REMOVE THIS LINE ON YOUR SCRIPT
Re: No commands are working -
litesp - 20.12.2010
Yay it worked, thanks alot dude