[Ajuda] Patente
#9

Se nгo conseguir resolver agora, desiste. rs!

pawn Код:
new Text:Patentes[MAX_PLAYERS]; // Textdraw Global

public OnGameModeInit()
{
    for(new i; i<MAX_PLAYERS; i++)          
    {
        Patentes[i] = TextDrawCreate...
    }
    return true;
}

stock GetarRank(playerid)
{
    switch (PlayerDados[playerid][Level])
    {
        case 0: NomeRank = "Novato";      
        case 1: NomeRank = "Recruta";        
        case 2: NomeRank = "Soldado";        
        case 3: NomeRank = "Cabo";        
        case 4: NomeRank = "Sargento";        
    }
    return true;
}

forward Atualizar();
public Atualizar()
{
    new string[50];
    for(new i; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i))
    {
        format(string, 50, "~g~~h~     ~>~Ranking~<~~n~~h~    %s", GetarRank(i));
        TextDrawSetString(Patentes[i], string), TextDrawShowForPlayer(i, Patentes[i]);        
    }
    return true;
}
Reply


Messages In This Thread
Patente - by Gleisson_. - 29.06.2013, 23:27
Re: Patente - by Rodney Francalim - 29.06.2013, 23:31
Re: Patente - by Gleisson_. - 29.06.2013, 23:38
Re: Patente - by [THs]ShadoW - 29.06.2013, 23:46
Re: Patente - by Gleisson_. - 29.06.2013, 23:51
Re: Patente - by Gustavo_Carvalho - 29.06.2013, 23:56
Re: Patente - by Gleisson_. - 30.06.2013, 00:02
Re: Patente - by Gustavo_Carvalho - 30.06.2013, 00:13
Re: Patente - by StrondA_ - 30.06.2013, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)