28.12.2012, 10:17
Okay, so i'm getting this error:
Код:
C:\Users\****\Desktop\IRP739.pwn(60469) : error 017: undefined symbol "playername" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
if(!strcmp(playername, "James_Willowfield"))
{
SendClientMessage(playerid, COLOR_GREY, "You cannot ban the big boss, even when he's offline. You were banned instead.");
new year, month,day;
getdate(year, month, day);
new playerip[32];
format(reason, sizeof(reason), "Trying to ban James Willowfield.");
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(string, sizeof(string), "AdmCmd: %s(IP:%s) was automatically banned, reason: %s (%d-%d-%d)", GetPlayerNameEx(playerid), playerip,reason,month,day,year);
Log("logs/ban.log", string);
format(string, sizeof(string), "AdmCmd: %s was banned by the system, reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pBanned] = 1;
format(PlayerInfo[playerid][pFlag], 128, "");
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
return 1;
}