[Ajuda] erro na pInfo
#5

Renomeie a vбriavel: Player_Info[MAX_PLAYERS][pInfo]
para: Player[MAX_PLAYERS][pInfo]

e substitua o seu cуdigo:
Код:
CMD:kickh(playerid, params[])  
{  
    if(Player[playerid][pHelper] == 1)
    {  
         new ID, Motivo[40], string[70];  
         if(sscanf(params, "ds", ID, Motivo)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite /kick ID Motivo");  
         format(string, sizeof(string), "Vocк foi kickado [ Motivo %s ]", Motivo); 
         SendClientMessage(ID, 0xFFFFFFAA, string); 
         Kick(ID);  
    }  
    return 1;  
}

CMD:sethelper(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
         new ID;
         if(sscanf(params, "d", ID)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite /sethelper ID");
         Player[ID][pHelper] = 1;
    }
    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)