ProgressBar
#5

Quote:
Originally Posted by Metzone
Посмотреть сообщение
Este es un ejemplo de un fs que antes me funcionaba, y es el que ahora no me funciona, al igual que todosl os demas.


pawn Код:
#include <progressbar>

new Bar:barrahungry[MAX_PLAYERS];
new variablehungry[MAX_PLAYERS] = 100;
new tiempohungry[MAX_PLAYERS];


public OnPlayerDisconnect(playerid, reason)
{
HideProgressBarForPlayer(playerid, barrahungry[playerid]);
    DestroyProgressBar(barrahungry[playerid]);
    KillTimer(tiempohungry[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
barras(playerid);
tiempohungry[playerid] = SetTimerEx("bhungry", 1000, true, "i", playerid);
ShowProgressBarForPlayer(playerid, barrahungry[playerid]);
    return 1;
}


forward barras(playerid);
public barras(playerid)
{
barrahungry[playerid] = CreateProgressBar(540.00, 375.00, 50.00, 05.00, 0xFFFF00AA, 100.0);
    SetProgressBarMaxValue(barrahungry[playerid], 100.0);
    SetProgressBarValue(barrahungry[playerid], 0);
return 1;
}

forward bhungry(playerid);
public bhungry(playerid) {
    variablehungry[playerid] --;
    SetProgressBarValue(barrahungry[playerid], variablehungry[playerid] );
    UpdateProgressBar(barrahungry[playerid], playerid);
    if(variablehungry[playerid] == 0)
    {
        variablehungry[playerid] = 100;
        SetProgressBarValue(barrahungry[playerid], variablehungry[playerid]);
        UpdateProgressBar(barrahungry[playerid], playerid);
    }
    return 1;
}
Ami me pasу una vez asн mismo, el problema era de los plugins, y otra vez me pasу por compilar con un plugin diferente al de ejecuciуn y de compilaciуn.
Reply


Messages In This Thread
ProgressBar - by Metzone - 04.11.2014, 08:21
Respuesta: ProgressBar - by Tusso4 - 04.11.2014, 17:38
Respuesta: ProgressBar - by jotajeda - 04.11.2014, 18:20
Re: ProgressBar - by Metzone - 04.11.2014, 21:30
Respuesta: Re: ProgressBar - by jotajeda - 04.11.2014, 22:55
Re: ProgressBar - by Metzone - 04.11.2014, 23:11
Respuesta: Re: ProgressBar - by jotajeda - 04.11.2014, 23:15
Re: ProgressBar - by Metzone - 05.11.2014, 08:13
Re: ProgressBar - by LiMPiTo - 05.11.2014, 10:45
Respuesta: Re: ProgressBar - by jotajeda - 05.11.2014, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)