#1

Hello, following a problem with my order / ban that did not work I try to fix it but am getting errors that I do not understand at all or his coming, have you any idea?
Quote:

C:\AMD\SA-MP\gamemodes\gm.pwn(4894) : error 017: undefined symbol "ip"
C:\AMD\SA-MP\gamemodes\gm.pwn(4894) : error 017: undefined symbol "ip"
C:\AMD\SA-MP\gamemodes\gm.pwn(4894) : error 029: invalid expression, assumed zero
C:\AMD\SA-MP\gamemodes\gm.pwn(4894) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
CMD:ban(playerid,params[])
{
    if(pInfo[playerid][pAdminLevel] >= 2)
    {
        if(IsPlayerConnected(playerid))
        {
			new targetid,reason[105],string[256];
			if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /ban [playerid] [reason]");
			if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

			format(string, sizeof(string), " %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
			SendClientMessageToAll(-1,string);

			BanPlayer(targetid,reason,PlayerName(playerid));

			format(string,sizeof(string), "Vous avez йtй banni du serveur\n\n{DC143C}Banni par{ffffff}: %s\n{DC143C}Raison{ffffff}: %s\n\nPostulez pour кtre unban:\n{FFFF33}www.bientot.com",PlayerName(playerid), reason);
		    ShowPlayerDialog(targetid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"{DC143C}BANNI",string,"Fermer","");

            pInfo[targetid][pBanned] = 1;
            GetPlayerIp(targetid, ip, sizeof(ip)); // The mistake of my compilation come from here
            format(string, sizeof(string), "banip %s",ip);
	    SetTimerEx("KickPlayer",100,false,"i",targetid);
Reply
#2

Problem solve, has close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)