Getting rid of SERVER: Unknown 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting rid of SERVER: Unknown Command? (
/showthread.php?tid=118477)
Getting rid of SERVER: Unknown Command? -
rumbiic - 03.01.2010
Can you please tell me how to do that?
I tried return 1; and return 0; but no success.
My script:
http://pastebin.com/m9e71c9e
Re: Getting rid of SERVER: Unknown Command? -
Eazy_Efolife - 03.01.2010
Quote:
Originally Posted by rumbiic
|
Can you please resend the code. instead of posting your whole GM.
Re: Getting rid of SERVER: Unknown Command? -
rumbiic - 03.01.2010
http://pastebin.com/m26784cd7
Here.
When I enter, for example, /count or /fix it says: SERVER: Unknown Command, but still does the function.
Re: Getting rid of SERVER: Unknown Command? -
radi - 03.01.2010
at the end of public on player command
place
Re: Getting rid of SERVER: Unknown Command? -
MadeMan - 03.01.2010
Add a return 1 at the end of the command:
pawn Код:
if (strcmp(cmd, "/fix", true) ==0 )
{
if(PlayerInfo[playerid][pLevel] >= 1)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
else if(PlayerInfo[playerid][pLevel] < 1)
{
SendClientMessage(playerid,COLOR_GREY, "[Kluda:] Tev nav 1. limenis!");
}
return 1; // HERE
}