05.11.2015, 08:04
Hi community,
I got this error in the following code (error 076: syntax error in the expression, or invalid function call)
Whole code : [ProgressBar function]
+Rep for best answer.
I got this error in the following code (error 076: syntax error in the expression, or invalid function call)
Код:
KillTimer(ProgressBar);
Код:
public ProgressBar() { foreach(Player,playerid) { SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])-10); UpdateProgressBar(hungry[playerid], playerid); if(GetProgressBarValue(hungry[playerid]) <= 0) { SetTimer("HungryTime", 10000, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Shoma alan gorosne hastid, lotfan ghaza bokhorid. agar nakhorid HP az dast midahid!"); SetProgressBarValue(hungry[playerid], 0); KillTimer(ProgressBar); // Here's the problem } } return 1; }