PHP код:
C:\Users\Âëàäåëåö\Desktop\Samp Stories\gamemodes\SampStories.pwn(20806 -- 20807) : error 028: invalid subscript (not an array or too many subscripts): "unbandate"
C:\Users\Âëàäåëåö\Desktop\Samp Stories\gamemodes\SampStories.pwn(20806 -- 20808) : error 001: expected token: "}", but found "new"
C:\Users\Âëàäåëåö\Desktop\Samp Stories\gamemodes\SampStories.pwn(20808) : warning 217: loose indentation
C:\Users\Âëàäåëåö\Desktop\Samp Stories\gamemodes\SampStories.pwn(20813) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
PHP код:
publics CheckBanList(playerid)
{
new str[500],rows,fields;
new BID[10],IP[32],time[30];
GetPlayerIp(playerid,IP,32);
cache_get_data(rows,fields);
if(!rows)return 0;
new unbandate = cache_get_field_content_int(0,"unbandate");
if(unbandate > gettime())
{
new ip[16],bandate = cache_get_field_content_int(0,"unbandate"),reason[32];
cache_get_field_content(0,"IP",ip);
cache_get_field_content(0,"time",time);
cache_get_field_content(0,"reason",reason);
cache_get_field_content(0,"BID",BID);
f(str,"{F5DEB3}Ник: %s (ID: %s)\nIP: %s\nЗаблокировал:\nДата блокировки: %s\nПричина: %s\n\nДата разблокировки: %s\n",sendername(playerid),BID,ip,date("%dd.%mm.%yyyy %hh:%ii:%ss",unbandate),reason,date("%dd.%mm.%yyyy %hh:%ii:%ss",bandate));
SPD(playerid,302,0,"{33CCFF}Аккаунт забанен",str,"OK","");
return SetTimerEx("KickFix",1000,0,"i",playerid);
}
else(unbandate < gettime())
{
new query[100];
f(query,"DELETE FROM bans WHERE name = '%s'",sendername(playerid));
mysql_tquery(mySQLDB,query,"","" );
return send(playerid, -1,"Срок Вашей блокировки истёк, пожалуйста не нарушайте правила сервера!");
}
return 1;
}