Progressbar
#1

Hola, estuve intentando hacer un sistema de hambre, pero no me sale, miren.
pawn Код:
public Hambre()
{
    foreach(Player, playerid)
    {
        SetProgressBarValue(HambreJ[playerid], -= 5.0);
        UpdateProgressBar(HambreJ[playerid], playerid);
    }
}
Lo que estoy intentando hacer con un timer es que cada determinado tiempo le quite 5.0 al ProgressBar

Aquн es cuando yo como pizza y me sube 20.0 en el progressbar.
pawn Код:
else if(playertextid == Textdraw6[playerid])
    {
        SetProgressBarValue(HambreJ[playerid], += 20.0);
        UpdateProgressbar(HambreJ[playerid], playerid);
        Informacion[playerid][pPizza] -= 1;
        ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,0,0);
    }
Y me da los siguientes errores:
Quote:

C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(149) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(149) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(250) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(250) : warning 215: expression has no effect
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(250) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(250) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(250) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

їAlguien me ayuda?, desde ya muchas gracias.
Reply


Messages In This Thread
Progressbar - by Alexander11 - 27.09.2014, 02:19
Respuesta: Progressbar - by Swedky - 27.09.2014, 02:22
Respuesta: Progressbar - by Alexander11 - 27.09.2014, 02:34

Forum Jump:


Users browsing this thread: 1 Guest(s)