SA-MP Forums Archive
How Do I Fix These errors - 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: How Do I Fix These errors (/showthread.php?tid=261301)



How Do I Fix These errors - Bmxerlmao5288 - 12.06.2011

Код:
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(269) : error 017: undefined symbol "CmdLevelCheck"
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(269) : error 017: undefined symbol "CmdLevelError"
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(271) : error 017: undefined symbol "AdminName"
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(273) : error 017: undefined symbol "SendCommandMsg"
Heres The Code

Код:
COMMAND:nuke(playerid, params[])
{
    #pragma unused params
    if(!CmdLevelCheck(playerid,"akillall")) return CmdLevelError(playerid,"akillall");
	new string[128];
	format(string, sizeof(string), "You Have Been Nuked by Administrator %s",AdminName(playerid));
	SendClientMessageToAll(COLOR_YELLOW, string);
	SendCommandMsg(playerid,"akillall");
	for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(!IsPlayerAdmin(i)) SetPlayerHealth(i,0);
	return 1;
}