[Ajuda] Actulizar
#4

Fiz assim
pawn Код:
//No topo
forward UpdateBars(playerid);
//OnGameModeInit
    SetTimer("UpdateBars", 1, 1);
//PUBLIC
public UpdateBars(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
          SetProgressBarValue(money,PlayerInfo[playerid][guita]);
          SetProgressBarValue(rep,PlayerInfo[playerid][respeito]);
          SetProgressBarValue(wanted,PlayerInfo[playerid][estrelas]);
    }
    return 1;
}

//exemplo de code que esta num comando /roubar
                                        PlayerInfo[playerid][estrelas] += 25;
                                        SetProgressBarValue(wanted,PlayerInfo[playerid][estrelas]);
Porem,esse code ai acima estб no comando /roubar,e qd roubo,a barra continua com o mesmo valor...
Reply


Messages In This Thread
Actulizar - by unamed - 29.08.2013, 13:53
Re: Actulizar - by .FuneraL. - 29.08.2013, 14:00
Re: Actulizar - by bruxo00 - 29.08.2013, 14:06
Re: Actulizar - by unamed - 29.08.2013, 15:29
Re: Actulizar - by darkxdll - 29.08.2013, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)