SA-MP Forums Archive
Progress bar include problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Progress bar include problem (/showthread.php?tid=509432)



Progress bar include problem - davve95 - 26.04.2014

Hi!


I recently downloaded this: https://sampforum.blast.hk/showthread.php?tid=113443

How can I create a bar that moves with a specific time?, I'm not sure enough.
Just know that I need a timer though.

And also when I tested this:

pawn Код:
new Bar:test1 = CreateProgressBar(50.0, 300.0, _, _, 0xFF0000FF, 100.0);
SetProgressBarValue(test1, 50.0);
I got these errors:

Код:
D:\Davids\Scripting\Server Las Venturas\LV.pwn(1870) : error 017: undefined symbol "CreateProgressBar"
D:\Davids\Scripting\Server Las Venturas\LV.pwn(1870) : warning 213: tag mismatch
D:\Davids\Scripting\Server Las Venturas\LV.pwn(1871) : error 017: undefined symbol "SetProgressBarValue"
D:\Davids\Scripting\Server Las Venturas\LV.pwn(1870) : warning 204: symbol is assigned a value that is never used: "test1"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Thanks!.

Edit: And yeah I used #include <MyInClude> .


Re: Progress bar include problem - awsomedude - 26.04.2014

It's because you are using the new include with the old functions.

So do this
pawn Код:
new PlayerBar:test1 = CreatePlayerProgressBar(playerid, 50.0, 300.0, _, _, 0xFF0000FF, 100.0);
SetPlayerProgressBarValue(playerid, test1, 50.0);



Re: Progress bar include problem - davve95 - 26.04.2014

Thanks a lot!.
How can I make so it moves a bit and it ends when the time runs out?.

I just know I'll need a timer.


Re: Progress bar include problem - vassilis - 27.04.2014

UpdatePlayerProgressBarValue


Re: Progress bar include problem - davve95 - 28.04.2014

Quote:
Originally Posted by vassilis
Посмотреть сообщение
UpdatePlayerProgressBarValue
Thanks!, I weren't fully sure how it worked as, I haven't tired it yet.

I still got a problem though:

Код:
D:\Davids\Scripting\Server Las Venturas\LV-use.pwn(1964) : error 017: undefined symbol "ShowProgressBarForPlayer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new PlayerBar:test1 = CreatePlayerProgressBar(playerid, 50.0, 300.0, _, _, 0xFF0000FF, 100.0);
   SetPlayerProgressBarValue(playerid, test1, 50.0);
   ShowProgressBarForPlayer(playerid, test1);



Re: Progress bar include problem - awsomedude - 28.04.2014

Here try this
pawn Код:
new PlayerBar:test1 = CreatePlayerProgressBar(playerid, 50.0, 300.0, _, _, 0xFF0000FF, 100.0);
SetPlayerProgressBarValue(playerid, test1, 50.0);
UpdatePlayerProgressBar(playerid, test1);
ShowPlayerProgressBar(playerid, test1);



Re: Progress bar include problem - davve95 - 30.04.2014

Thanks a lot it worked.

Do you know how I should do with the timer so it updates the time on the progress bar?.
I mean like every minute for example, I have knew it before but forgot it.