SA-MP Forums Archive
Progress Bar - 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 (/showthread.php?tid=561387)



Progress Bar - Ciarannn - 02.02.2015

How do I create a progress bar that shows up when the player gets into a vehicle? It also has to update every second and could you set the value to this:

pawn Код:
Fuel[GetPlayerVehicleID(playerid)]
So like:

pawn Код:
SetProgressBarValue(barid, Fuel[GetPlayerVehicleID(playerid)]);
I tried to do it myself, but couldn't get it working.
Thank you.


Re: Progress Bar - Smileys - 02.02.2015

Use Southclaw's per-player progress bars, ****** it it's somewhere on this forum with a wide explanation on how to use it, a bunch of functions added too and whatnot.

as for the updating, refer to timers, SetTimer(global), SetTimerEx(per-player) or use y_timers(both), I prefer the last one as it's easy to use and has a good explanation on it's tutorial thread(s).


Re: Progress Bar - Ciarannn - 03.02.2015

Quote:
Originally Posted by Smileys
Посмотреть сообщение
Use Southclaw's per-player progress bars, ****** it it's somewhere on this forum with a wide explanation on how to use it, a bunch of functions added too and whatnot.

as for the updating, refer to timers, SetTimer(global), SetTimerEx(per-player) or use y_timers(both), I prefer the last one as it's easy to use and has a good explanation on it's tutorial thread(s).
I did, that is why I'm asking here-.. my pawn compiler crashed when trying to create a new bar.