[Ajuda] Valor Progress bar
#1

Como eu Geto o valor da progressbar para a ocultara?
Quando chegar a 100.0 ele da um Hide na progress:

pawn Код:
if(strcmp(cmd, "/carregarm", true) == 0)
    {
        GameTextForPlayer(playerid,"~r~carregando~n~~b~Aguarde...",7000,3);
        ShowProgressBarForPlayer(playerid, Carregando[playerid]);
        //Travado(playerid,false);
        SetProgressBarValue(Carregando[playerid],0.0);
        SetTimerEx("AumentarBar", 1500,true,"i",playerid);
        SetProgressBarValue(Carregando[playerid], 0xEDDD00);
        } else { //
        GetProgressBarValue(Carregando)//
        HideProgressBarForPlayer(playerid, Carregando)//
        return 1;
    }
Sei que foi fail pois ta dando erro, mas como faзo para getar?
Reply
#2

pawn Код:
if( Carregando[playerid] >= 100.0 )
{
HideProgressBarForPlayer(playerid, Carregando);
return 1;
}
Reply
#3

Em que public coloco?

@1 erro

PHP код:
C:\Users\USER\Desktop\servidor\gamemodes\servidor1.pwn(15410) : warning 213tag mismatch 
Linhas

PHP код:
        if( Carregando[playerid] >= 100.0 // 1° erro 
Reply
#4

'warning'

teste:
pawn Код:
if( Carregando[playerid] >= 100 )
Reply
#5

Ele executa a progress e manda a mensagem comando invбlido, e ai depois que da novamente o comando nгo aparece progress apenas o GTFP...
E A progress carrega super-rapido, sendo que no timer nгo estб configurado assim, e antes dava normal.
Reply
#6

Quote:
Originally Posted by DevilAgain
Посмотреть сообщение
Em que public coloco?

@1 erro

PHP код:
C:\Users\USER\Desktop\servidor\gamemodes\servidor1.pwn(15410) : warning 213tag mismatch 
Linhas

PHP код:
        if( Carregando[playerid] >= 100.0 // 1° erro 
Carregar teria que ser uma Float para que vocк possa usar ponto .
Reply
#7

Da um exemplo Don?
Reply
#8

pawn Код:
new Float:carregando[MAX_PLAYERS];
Reply
#9

E depois ? .-.
Reply
#10

if ( GetProgressBarValue ( barid == 100) {
//
return 1;
}

Creio que seria assim!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)