Progress Bar
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)