[Ajuda] erro na pInfo
#6

PHP код:
enum pInfo
{
    
pSkin,
    
pSenha,
    
pHelper,
    
pDG,
    
pMod
};
pInformacoes[MAX_PLAYERS][pInfo];
CMD:kickh(playeridparams[])
{
    if(
pInformacoes[playerid][pHelper] == 1)
    {
        
        new 
IDMotivo[40], string[70]; 
        if(
sscanf(params"ds[40]"IDMotivo)) return SendClientMessage(playerid0xFFFFFFAA"Digite /kick ID Motivo"); // qnd й string coloque s[tamanho]
        
format(stringsizeof(string), "Vocк foi kickado [ Motivo %s ]"Motivo);
        
SendClientMessage(ID0xFFFFFFAAstring);
        
Kick(ID);
    }
    return 
1;
}
CMD:sethelper(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        
        new 
ID;
        if(
sscanf(params"d"ID)) return SendClientMessage(playerid0xFFFFFFAA"Digite /sethelper ID");
        
pInformacoes[ID][pHelper] = 1// Aqui vocк colocou errado em playerid vocк coloca o ID
    
}
    return 
1;

Reply


Messages In This Thread
erro na pInfo - by DKDarkking - 29.05.2015, 20:29
Re: erro na pInfo - by AzulimZW - 29.05.2015, 20:42
Re: erro na pInfo - by Whoo - 29.05.2015, 20:50
Re: erro na pInfo - by DKDarkking - 29.05.2015, 20:55
Re: erro na pInfo - by AzulimZW - 29.05.2015, 21:03
Re: erro na pInfo - by Whoo - 29.05.2015, 21:07
Re: erro na pInfo - by DKDarkking - 29.05.2015, 21:10
Re: erro na pInfo - by AzulimZW - 29.05.2015, 21:16
Re: erro na pInfo - by DKDarkking - 29.05.2015, 21:22
Re: erro na pInfo - by AzulimZW - 29.05.2015, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)