Ban command problem
#1

Hello everyone,

Today I have written a ban command but it is giving me a strange error which I could not fix by myself, hopefully you could help me out:

Код:
YCMD:ban(playerid, params[], help)
{
        #pragma unused help
        if(P_Data[playerid][pAdmin] == 0) return SCM(playerid, COLOR_RED, "* You are not authorized to use this command!");
        new
			string[128],pplayerid, reason[48];
        if(sscanf(params, "us[48]", pplayerid, reason)) return SCM(playerid, COLOR_RED, "Usage: /ban [Player ID/Player Name] [Reason]");
        if(pplayerid == IPI) return SCM(playerid, COLOR_RED, "Wrong playerid!");
		if(P_Data[pplayerid][pAdmin] == 5) return SCM(playerid, COLOR_RED, "You cannot ban an admin level 5");
		format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"is ban player "COL_WHITE"%s  "COL_RED"Reason: %s",GetName(playerid),GetName(pplayerid),reason);
        SCMToAll(-1,string);
		Bans(playerid,pplayerid,reason);
        Ban(pplayerid);
        return 1;
}
Errors:
Quote:

undefined symbol "@yC_ban"
undefined symbol "@yC_ban"
error 017: undefined symbol "@_yCban"
fatal error 107: too many error messages on one li

Exact line:
Код:
YCMD:ban(playerid, params[], help)
Reply


Messages In This Thread
Ban command problem - by UnlimitedFreeroam - 25.04.2014, 18:48
Re: Ban command problem - by Galletziz - 25.04.2014, 18:53
Re: Ban command problem - by UnlimitedFreeroam - 25.04.2014, 18:59
Re: Ban command problem - by Galletziz - 25.04.2014, 19:00
Re: Ban command problem - by UnlimitedFreeroam - 25.04.2014, 19:03
Re: Ban command problem - by Konstantinos - 25.04.2014, 19:10
Re: Ban command problem - by PrinceKumar - 25.04.2014, 19:11
Re: Ban command problem - by CHAVES1 - 25.04.2014, 19:14
Re: Ban command problem - by PrinceKumar - 25.04.2014, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)