Simple pregunta
#1

Hola, tengo 4 playerbars que cree. Se muestran solo UNA VEZ, que es cuando el usuario spawnea por primera vez. Entonces se muestran 3 Progressbars pero la barra de experiencia(barid:barraexp) no se muestra. Codigo:
pawn Код:
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
                new expamount = nxtlevel*levelexp;
               
                barraexp[playerid] = CreatePlayerProgressBar(playerid, 56.00, 437.00, 201.50, 1.50, -1, 100.0);
                barraorina[playerid] = CreatePlayerProgressBar(playerid, 352.00, 437.00, 76.50, 1.50, -65281, 100.0);
                barrasueno[playerid] = CreatePlayerProgressBar(playerid, 439.00, 437.00, 76.50, 1.50, 11272191, 100.0);
                barra[playerid] = CreatePlayerProgressBar(playerid, 527.00, 437.00, 76.50, 1.50, -8912641, 100.0);


                SetPlayerProgressBarMaxValue(playerid, barraexp[playerid], expamount);
                SetPlayerProgressBarMaxValue(playerid, barraorina[playerid], 100);
                SetPlayerProgressBarMaxValue(playerid, barrasueno[playerid], 100);
                SetPlayerProgressBarMaxValue(playerid, barra[playerid], 100);

               
                SetPlayerProgressBarValue(playerid, barraexp[playerid], PlayerInfo[playerid][pExp]);
                SetPlayerProgressBarValue(playerid, barraorina[playerid], PlayerInfo[playerid][pOrina]);
                SetPlayerProgressBarValue(playerid, barrasueno[playerid], PlayerInfo[playerid][pSueno]);
                SetPlayerProgressBarValue(playerid, barra[playerid], PlayerInfo[playerid][pHambre]);


                UpdatePlayerProgressBar(playerid, barraexp[playerid]);
                UpdatePlayerProgressBar(playerid, barraorina[playerid]);
                UpdatePlayerProgressBar(playerid, barrasueno[playerid]);
                UpdatePlayerProgressBar(playerid, barra[playerid]);

               
                ShowPlayerProgressBar(playerid, barraexp[playerid]);
                ShowPlayerProgressBar(playerid, barraorina[playerid]);
                ShowPlayerProgressBar(playerid, barrasueno[playerid]);
                ShowPlayerProgressBar(playerid, barra[playerid]);
Espero que me ayuden, gracias
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)