Commands working, but returns Server: Unknown Command
#1

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
Reply
#2

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;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)