10.11.2010, 21:13
Try this
Only 2 warnings
pawn Код:
dcmd_unban(playerid,params[])
{
if(AccInfo[playerid][Level] >= 2)
{
new tmp[256], Index; tmp = strtok(params,Index);
new File:open = fopen("LuxAdmin/Config/UnBanNameLog",io_write);
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unban [name]");
new adminname[MAX_PLAYER_NAME], string[128], unbanname[256];
unbanname = tmp;
if(udb_Exists(unbanname)) {
dUserSetINT(unbanname).("banned", 0);
GetPlayerName(playerid, adminname, sizeof(adminname));
MessageToAdmins(green,string);
format(string,sizeof(string),"Server: %s (ID: %d) has unbanned the name: \"%s\" .",adminname,playerid,unbanname);
SendClientMessageToAll(green,string);
print(string);
}
}
return 1;
}
Код:
C:\Users\jk\Documents\Old Shit\GTa Server\0.3B R2\filterscripts\LuxAdmin.pwn(2737) : warning 204: symbol is assigned a value that is never used: "open" C:\Users\jk\Documents\Old Shit\GTa Server\0.3B R2\filterscripts\LuxAdmin.pwn(2737 -- 2750) : warning 217: loose indentation