Pomoc - Hunger

Započeo Benac
15. Feb. 2014. Zaključano
334
pregleda
6
postova
Benac
4
Enforcer
15. Feb. 2014.
SKRIPTA: FS
PROBLEM: nerazumijem zasto kada bar dode do 0 nepocme skidati healt :S
DIO SKRIPTE:
public OnFilterScriptInit()
{
SetTimer("ProgressBar", 3000, 1);
SetTimer("update", 2000, 1);

for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        new Float:health;
GetPlayerHealth(playerid, health);
        new HungryTime = SetPlayerHealth(playerid, health-5);
if(GetProgressBarValue(hungry) <= 0)
{
    SetTimer("HungryTime", 30000, 1);
}
if(GetProgressBarValue(hungry) <= 0)
{
    SetProgressBarValue(hungry, 0);
}
if(GetProgressBarValue(hungry) > 0)
{
    KillTimer(HungryTime);
}
}
return 1;
}

SLIKA: /
Blaeks_Biofor
5
Forum Don
15. Feb. 2014.
if(GetProgressBarValue(hungry) <= 0)
{
    SetTimer("HungryTime", 30000, 1);
}
if(GetProgressBarValue(hungry) <= 0)
{
    SetProgressBarValue(hungry, 0);
}
2 iste provere razlicite funkcije ?
Benac
4
Enforcer
15. Feb. 2014.
?
Blaeks_Biofor
5
Forum Don
15. Feb. 2014.
ovu proveru
if(GetProgressBarValue(hungry) <= 0)
stavljas 2 puta, a razlicite funkcije im pokreces
Benac
4
Enforcer
15. Feb. 2014.
pajedna mi je za poruku a druga kada dode na 0 da prekine timer da mu timer prestane da crkne kak da to nap
Blaeks_Biofor
5
Forum Don
16. Feb. 2014.
if(GetProgressBarValue(hungry) <= 0)
{
    SetTimer("HungryTime", 30000, 1);
                SetProgressBarValue(hungry, 0);
  }
moze to i ovako  ?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha