[Ajuda] Problema com sscanf
#2

PHP код:
CMD:kick(playeridparams[])
{
    new 
idmotivo[64];
    
GetPlayerName(playerid,pname,sizeof(pname));
    
GetPlayerName(id,pname2,sizeof(pname2));
    if(
sscanf(params"ds[64]"id,motivo))
    {
        
SendClientMessage(playerid,COR_ERRO,"Use: /kick [id] [motivo]");
    }
    else
    {
        if(
Account[playerid][AdminLVL] < 1)
        {
            
SendClientMessage(playerid,COR_ERRO,"Vocк nгo possui level suficiente de administrador.");
        }
        else
        {
            if(!
IsPlayerConnected(id))
            {
                
SendClientMessage(playerid,COR_ERRO,"Player nгo conectado.");
            }
            else
            {
                
format(pStringsizeof(pString),"** O %s %s(id:%d) kickou o player %s(id:%d)(motivo: %s)!",aLVL[GetAdmin(playerid)],pname,playerid,pname2,id,motivo);
                
SendClientMessageToAll(COR_CINZA,pString);
                
//Kick(id);
            
}
        }
    }
    return 
1;

Reply


Messages In This Thread
Problema com sscanf - by TheIII - 28.04.2014, 01:41
Re: Problema com sscanf - by Fel486 - 28.04.2014, 01:44
Re: Problema com sscanf - by Input - 28.04.2014, 01:44
Re: Problema com sscanf - by TheIII - 28.04.2014, 01:53
Re: Problema com sscanf - by Input - 28.04.2014, 01:54
Re: Problema com sscanf - by DiiMeNoR - 28.04.2014, 02:01
Re: Problema com sscanf - by TheIII - 28.04.2014, 02:01
Re: Problema com sscanf - by TheIII - 28.04.2014, 02:08
Re: Problema com sscanf - by Fel486 - 28.04.2014, 02:41
Re: Problema com sscanf - by TheIII - 28.04.2014, 02:50

Forum Jump:


Users browsing this thread: 1 Guest(s)