Progress bar value changing - 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 value changing (
/showthread.php?tid=581382)
Progress bar value changing -
Saddin - 12.07.2015
Hello all! Need help about progress bar value.
How can I change value of progress bar by 10.
For example, now is 100, i want to reduce it by -10. Without using SetProgressValue.... to 90..
Im using
https://sampforum.blast.hk/showthread.php?tid=537468&page=11
Re: Progress bar value changing -
WilliamOordt - 13.07.2015
Dont know how this plugin works but it looks like youre just typing the function in wrong. Try replacing it with this.
SetPlayerProgressBarValue(playerid, PlayerBar:barid, 90);
Re: Progress bar value changing -
Saddin - 13.07.2015
i fix it:
SetPlayerProgressBarValue(playerid, barid, GetPlayerProgressBarValue(playerid, barid)-10.0);