how i remove this errors ?
#1

I am put and temp ban system in my gamemode but when i compiled it it gave me error


Errors type:
(819) : error 017: undefined symbol "TempBanData"
(819) : error 009: invalid array size (negative, zero or out of bounds)
(4644) : error 021: symbol already defined: "name"

Errors lines :
1:new TempBans[24][TempBanData]; // 24 = max bans

2:
//temp Ban checking
new name[24],ip[16];
GetPlayerIp(playerid,ip,sizeof ip);
GetPlayerName(playerid,name,sizeof name);
for(new id; id < 24; id++)
{
if(!strcmp(name,TempBans[id][BannedName]))
{ // ban type is name
SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
Kick(playerid);
return 1;
}

if(!strcmp(ip,TempBans[id][BannedIP]))
{ // ban type is ip !
SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
Kick(playerid);
return 1;
}
}
Reply


Messages In This Thread
how i remove this errors ? - by PAF - 07.08.2014, 08:44
Re: how i remove this errors ? - by CaDDySaMp - 07.08.2014, 08:53
Re: how i remove this errors ? - by PAF - 07.08.2014, 08:55
Re: how i remove this errors ? - by CaDDySaMp - 07.08.2014, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)