/ban command error
#1

Here is the code:
Код:
CMD:ban(playerid, params[])
{
   	if(PlayerInfo[playerid][pAdmin] < 3)
	{
    new id;
    new string[128];
    if(sscanf(params, "us[50]", id))return SendClientMessage(playerid, -1, "usage: /ban [id] ");
    if(IsPlayerConnected(id))
		{
  			if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "invalid player");
			format(string,sizeof(string),"admin '%s' has banned '%s' ",GetName(playerid),GetName(id));
		 	SendClientMessageToAll(COLOR_RED,string);
  			SetTimerEx("Banned",200,false,"d", id);
   			return SendClientMessage(playerid,COLOR_RED,"You have been banned by Admin!");
	    }
		else return  SendClientMessage(playerid, COLOR_RED, "The player is not in the server!");
	}
	else return SendClientMessage(playerid, COLOR_RED, "YOu need to be 3 level admin!");
}
Here is the error:
Код:
C:\Users\Ivailo\Desktop\Iordan\Servers\ALFA GAME ROLEPLAY\gamemodes\AG-RP.pwn(446) : error 017: undefined symbol "GetName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
/ban command error - by dakata994 - 07.12.2013, 16:31
Re: /ban command error - by Wizzy951 - 07.12.2013, 16:34
Re: /ban command error - by iPrivate - 07.12.2013, 16:37
Re: /ban command error - by Konstantinos - 07.12.2013, 16:39
Re: /ban command error - by dakata994 - 07.12.2013, 16:39
Re: /ban command error - by Wizzy951 - 07.12.2013, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)