19.11.2018, 19:17
Hello! I have a problem with the progressbar, it turns out that I need to increase every 10 seconds by 10%, but only by 1 time.
Код:
new TimeBar[MAX_PLAYERS]; forward Cant(playerid); public Cant(playerid) { new Work_Cant[MAX_PLAYERS]; Work_Cant[playerid] ++; SetProgressBarValue(WorkBar[playerid], Work_Cant[playerid]); UpdateProgressBar(WorkBar[playerid], playerid); return 1; // timer: TimeBar[playerid] = SetTimer("Cant", 1000, 1); }