/unban [ bugs ] [ y_ini ] [ sscanf ]
#1

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?

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;
}
Reply


Messages In This Thread
/unban [ bugs ] [ y_ini ] [ sscanf ] - by RicaNiel - 13.10.2012, 04:12
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by newbienoob - 13.10.2012, 04:17
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by Lordzy - 13.10.2012, 04:18
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by RicaNiel - 13.10.2012, 04:20
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by newbienoob - 13.10.2012, 04:21
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by RicaNiel - 13.10.2012, 04:25
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by JhnzRep - 13.10.2012, 05:15
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by Jarnu - 13.10.2012, 05:53
Re: /unban [ bugs ] [ y_ini ] [ sscanf ] - by JhnzRep - 13.10.2012, 05:56

Forum Jump:


Users browsing this thread: 2 Guest(s)