[Ajuda] Quero Que Isso Vire Um Comando
#1

PHP код:
BMC::AtualizarRank()
{
    foreach(
Playeri)
    {
        if(
gPlayerLogged[i])
        {
            
checkrank("nivel",                 NomePlayer(i), PlayerInfo[i][pLevel]);
            
checkrank("horasjogadas",         NomePlayer(i), PlayerInfo[i][pConnectTime]);
               
checkrank("kills",                 NomePlayer(i), PlayerInfo[i][pKills]);
               
checkrank("mortes",             NomePlayer(i), PlayerInfo[i][pDeaths]);
            
checkrank("banco",                 NomePlayer(i), PlayerInfo[i][pConta]+GetPlayerMoney(i)+(PlayerInfo[i][pOuros]*100000));
            
checkrank("crimes",             NomePlayer(i), PlayerInfo[i][pCrimes]);
            
checkrank("materiais",             NomePlayer(i), PlayerInfo[i][pMats]+PlayerInfo[i][psMats]);
            
checkrank("maconha",             NomePlayer(i), PlayerInfo[i][pDrogas]+PlayerInfo[i][pSafeDrogas]);
            
checkrank("cocaina",             NomePlayer(i), PlayerInfo[i][pDrogas2]+PlayerInfo[i][pSafeDrogas2]);
            
checkrank("crack",                 NomePlayer(i), PlayerInfo[i][pDrogas3]+PlayerInfo[i][pSafeDrogas3]);
            
checkrank("contratos",             NomePlayer(i), PlayerInfo[i][pContratos]);
        }
    }
    
SendClientMessageToAll(-1"{2641FE}» {09C3FB}Os ranks foram atualizados, para ve-los use {00FF00}/rank.");
    return 
1;

Reply
#2

PHP код:
CMD:atualizarranks(playeridparams[])
    return 
AtualizarRank(); 
Reply
#3

Quote:
Originally Posted by Lуs
Посмотреть сообщение
PHP код:
CMD:atualizarranks(playeridparams[])
    return 
AtualizarRank(); 
Lуs responde PM..
Reply
#4

PHP код:
CMD:atualizarranks(playeridparams[]){
    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
    return 
AtualizarRank();

ta dando 1 warning me ajuda ai los
Reply
#5

Tira o params[]
Reply
#6

ja consegui arrumar
tinha q botar return 1;
Reply
#7

PHP код:
CMD:atualizarranks(playeridparams[]){
    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        return 
AtualizarRank();
    
    return 
1;

Reply


Forum Jump:


Users browsing this thread: