13.04.2014, 17:23
I'm just trying to make a ban system using Y_INI. So, I have some errors here.. I have no idea on how to fix this up.
Thanks in advance!
pawn Код:
if(fexist(BanPath(playerid))) // Line 596
{
new year,month,day,date[50],IP[20];
getdate(year,month,day);
GetPlayerIp(playerid,IP,sizeof(IP));
format(date,sizeof(date),"%i/%i/%i",day,month,year);
INI_ParseFile(BanPath(playerid),"LoadBan_%s", .bExtra = true, .extra = playerid);
format(string,sizeof(string),"Ban Name: %s\nBanned Admin: %s\nBan Reason: %s\nBanned IP: %s\nCurrent IP: %s\nBan Occured date: %s",GetName(playerid),PlayerInfo[playerid][pBannedBy],PlayerInfo[playerid][pBanReason],PlayerInfo[playerid][pBannedIP],IP,PlayerInfo[playerid][pBanOccuredDate]);
ShowPlayerDialog(playerid,DIALOG_BAN,DIALOG_STYLE_MSGBOX,"You are banned from this server!",string,"Bye bye!","");
}
Код:
C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\istunting.pwn(596) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\istunting.pwn(596) : warning 215: expression has no effect C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\istunting.pwn(596) : error 001: expected token: ";", but found ")" C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\istunting.pwn(596) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\istunting.pwn(596) : fatal error 107: too many error messages on one line