[Ajuda] Atualizar Progress Bar.
#1

Bom pessoal, estou com um problema para atualizar a progress bar enquanto o player segura a tecla N.
Exemplo:
PHP код:
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        if (
HOLDING(KEY_NO))
        {
              
ShowProgressBarForPlayer(playeridExemplo); 
            
Valor2 [playerid] += 25
               
SetProgressBarValue(ExemploValor2[playerid]);
             
UpdateProgressBar(Exemploplayerid);
             if (
Valor2[playerid] == 100)
             {
                  
HideProgressBarForPlayer(playeridExemplo); 
                  
SetProgressBarValue (Exemplo0) ;
                new 
GetNearestItemID(playerid);
                if(
!= -1)
                {
                    if(
IsPlayerInRangeOfPoint(playerid1.5DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
                    {
                        new 
str[45],
                            
itemid DropInfo[i][DropItemID];
                        
format(strsizeof(str), "{FFFFFF}>> %s"ItemInfo[itemid][Item_Name]);
                        
ShowPlayerDialog(playerid9798DIALOG_STYLE_MSGBOX,"Looting"str"Pegar""Fechar");
                    }
                }
            }
        }
        else if (
RELEASED(KEY_NO))
        
HideProgressBarForPlayer(playeridExemplo);
        
Valor2[playerid] = 0;
    }
    return 
1;

Estб tudo do jeito o certo o problema й que enquanto seguro a tecla N a progress nгo atualiza. Fica apenas em 25%
Reply


Messages In This Thread
Atualizar Progress Bar. - by PowerEvolve - 21.02.2018, 18:07
Re: Atualizar Progress Bar. - by GuiKommander - 22.02.2018, 00:15
Re: Atualizar Progress Bar. - by JohnBlack - 22.02.2018, 04:37
Re: Atualizar Progress Bar. - by PowerEvolve - 22.02.2018, 04:47
Re: Atualizar Progress Bar. - by GuilhermeW - 22.02.2018, 12:30
Re: Atualizar Progress Bar. - by Meck - 12.03.2018, 14:42
Re: Atualizar Progress Bar. - by Injury - 12.03.2018, 18:25

Forum Jump:


Users browsing this thread: 2 Guest(s)