13.10.2012, 04:12
Guys i got some errors when using the command
but it compiled well
can somone help me fix it
and explain to me what did i do wrong?
but it compiled well
can somone help me fix it
and explain to me what did i do wrong?
pawn Код:
CMD:unban(playerid,params[])
{
new name[MAX_PLAYER_NAME],path[128];
if(pData[playerid][pAdmin] < 6 && !IsPlayerAdmin(playerid)) return Errorcmd(playerid);
if(sscanf(params,"s[MAX_PLAYER_NAME]",name)) return SendClientMessage(playerid,C_USAGE,"[ Usage ]:"CWHITE" /unban [ Name ]");
format(path,sizeof(path),P_DATA,name);
if(!fexist(path)) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" Player Unknown to the Database ");
new INI:Data = INI_Open(path);
INI_WriteInt(Data,"Banned",0);
INI_Close(Data);
return 1;
}