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

Thanks but i got 2nd Error
it keep saying

pawn Код:
[ Error ]: Player Unknown to the Database
even if i typed the name correctly
and i even copy the data name

and here is the updated command

PHP код:
CMD:unban(playerid,params[])
{
    new 
name[MAX_PLAYER_NAME],path[128];
    if(
pData[playerid][pAdmin] < && !IsPlayerAdmin(playerid)) return Errorcmd(playerid);
    if(
sscanf(params,"u",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 ");
    else{
    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: 1 Guest(s)