Progress bar include problem
#1

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> .
Reply
#2

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);
Reply
#3

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.
Reply
#4

UpdatePlayerProgressBarValue
Reply
#5

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);
Reply
#6

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);
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)