SA-MP Forums Archive
progress.inc - 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.inc (/showthread.php?tid=586283)



progress.inc - Karolukas123 - 20.08.2015

hey, i have big problem. So if in server play 2-4 players progress bar working and it showing for players but if in server +20 progressbar gone..

Код:
new Bar: BankBar[MAX_PLAYERS] = {INVALID_BAR_ID, ...},

onplayerconnect

	DestroyProgressBar(BankBar[playerid]);
	BankBar[playerid] = INVALID_BAR_ID;

onplayerdisconect

	DestroyProgressBar(BankBar[playerid]);
	BankBar[playerid] = INVALID_BAR_ID;



Re: progress.inc - Karolukas123 - 21.08.2015

up up


Re: progress.inc - Battlezone - 21.08.2015

increase the MAX_BARS in the include, also keep in mind that progress bars use many textdraws