Commands working, but returns 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: Commands working, but returns Server: Unknown Command (
/showthread.php?tid=96539)
Commands working, but returns Server: Unknown Command -
WickWoody - 08.09.2009
Hello. I've added all the commands are working mode. But the command to run, despite continuous Server: Unknown Command message returns. Below is a sample command. Please Help. Sorry for my bad english.
Код:
if (strcmp(cmdtext, "/yeti", true)==0)
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2111.6038,-1795.4509,209.9413);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s yeti aramaya cikti. [/yeti]", name);
SendClientMessageToAll(playerColors[playerid], string);
SendClientMessage(playerid, COLOR_YELLOW, "Yeti'yi bulmak icin tufegi ve fotograf makinesini kullanin.");
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, -700);
GameTextForPlayer(playerid, "~r~-700$", 2000, 1);
}
After running this command but a command in the Server: Unknown Command gives warning. I do not understand
Re: Commands working, but returns Server: Unknown Command -
[mad]MLK - 09.09.2009
try
Код:
if (strcmp(cmdtext, "/yeti", true)==0)
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2111.6038,-1795.4509,209.9413);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s yeti aramaya cikti. [/yeti]", name);
SendClientMessageToAll(playerColors[playerid], string);
SendClientMessage(playerid, COLOR_YELLOW, "Yeti'yi bulmak icin tufegi ve fotograf makinesini kullanin.");
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, -700);
GameTextForPlayer(playerid, "~r~-700$", 2000, 1);
return 1;
}