06.10.2014, 11:10
After i Download Your Script Bans its Nice Script But There Error After i Download The TimeStampToDate.inc
There 4 Errors
but i fixed 3
but the last one not fixing its sucks
line 244 =
this all line in connect
There 4 Errors
but i fixed 3
Quote:
warning 217: loose indentation |
Quote:
(244) : warning 217: loose indentation |
Quote:
return 1;} |
Quote:
public OnPlayerConnect(playerid) { if(fexist(UserBanPath(playerid))) { INI_ParseFile(UserBanPath(playerid), "LoadBanUser_%s", .bExtra = true, .extra = playerid); if(PlayerInfo[playerid][pBanPerm]==1) {new reso[256]; SendClientMessage(playerid,-1,"{85BB65}You are permanently Banned from this server by Administration"); format(reso,sizeof(reso),"{85BB65}Reason: {f0f000}%s",PlayerInfo[playerid][pBanres]); SendClientMessage(playerid,-1,reso); format(reso,sizeof(reso),"{85BB65}Banning Admin: {f0f000}%s",PlayerInfo[playerid][pBanAdmin]); SendClientMessage(playerid,-1,reso); SetTimerEx("KickPlayer",100,false,"i",playerid); } else { if(gettime() > PlayerInfo[playerid][pBanexp]) { fremove(UserBanPath(playerid)); fremove(UserIPPath(playerid)); SendClientMessage(playerid,-1,"{00cc00}You have been unbanned!!!!"); } else { new d,m,y,h,mi,s; TimestampToDate(PlayerInfo[playerid][pBanexp],y,m,d,h,mi,s,GMT_H,GMT_M); new str[540]; format(str,sizeof(str),"{85BB65}This Account Has Been Banned By The Adminstration Until {f0f000}%i-%i-%i[Date format : dd/mm/yyyy]",d,m,y); SendClientMessage(playerid,-1,str); format(str,sizeof(str),"{85BB65}Expires on[TIME] -- {f0f000}%i-%i[Time Format: 24 Hour Clock]",h,mi); SendClientMessage(playerid, -1, str); format(str,sizeof(str),"{85BB65}Reason -- {f0f000}%s",PlayerInfo[playerid][pBanres]); SendClientMessage(playerid, -1, str); format(str,sizeof(str),"{85BB65}Banning Admin -- {f0f000}%s",PlayerInfo[playerid][pBanAdmin]); SendClientMessage(playerid, -1, str); SetTimerEx("KickPlayer",100,false,"i",playerid); }}} else if(fexist(UserIPPath(playerid))) { INI_ParseFile(UserIPPath(playerid), "LoadIPUser_%s", .bExtra = true, .extra = playerid); if(PlayerInfo[playerid][pBanPerm]==1) { new reso[256]; SendClientMessage(playerid,-1,"{85BB65}This IP is permanently Banned from this server by Administration"); format(reso,sizeof(reso),"{85BB65}Originally Banned Player: {f0f000}%s",PlayerInfo[playerid][pBanIPP]); SendClientMessage(playerid,-1,reso); format(reso,sizeof(reso),"{85BB65}Reason: {f0f000}%s",PlayerInfo[playerid][pBanres]); SendClientMessage(playerid,-1,reso); format(reso,sizeof(reso),"{85BB65}Banning Admin: {f0f000}%s",PlayerInfo[playerid][pBanAdmin]); SendClientMessage(playerid,-1,reso); SetTimerEx("KickPlayer",100,false,"i",playerid); } else { if(gettime() > PlayerInfo[playerid][pBanexp]) { new pat[100]; fremove(UserIPPath(playerid)); format(pat,sizeof(pat),"Bans/%s.ini",PlayerInfo[playerid][pBanIPP]); fremove(pat); SendClientMessage(playerid,-1,"{00cc00}This IP was banned but as now the expire time has passed this IP has been unbanned."); } else { new d,m,y,h,mi,s; TimestampToDate(PlayerInfo[playerid][pBanexp],y,m,d,h,mi,s,GMT_H,GMT_M); new str[540]; format(str,sizeof(str),"{85BB65}This IP Has Been Banned By The Adminstration Until {f0f000}%i-%i-%i[Date format : dd/mm/yyyy]",d,m,y); SendClientMessage(playerid,-1,str); format(str,sizeof(str),"{85BB65}Expires on[TIME] -- {f0f000}%i-%i[Time Format: 24 Hour Clock]",h,mi); SendClientMessage(playerid, -1, str); format(str,sizeof(str),"{85BB65}Originally Banned Player -- {f0f000}%s",PlayerInfo[playerid][pBanIPP]); SendClientMessage(playerid, -1, str); format(str,sizeof(str),"{85BB65}Reason -- {f0f000}%s",PlayerInfo[playerid][pBanres]); SendClientMessage(playerid, -1, str); format(str,sizeof(str),"{85BB65}Banning Admin -- {f0f000}%s",PlayerInfo[playerid][pBanAdmin]); SendClientMessage(playerid, -1, str); SetTimerEx("KickPlayer",100,false,"i",playerid); }}} return 1;} |