28.02.2015, 16:13
Hi guys,
I made repeat timer(timer's ID will be save into array) and I have this errors
Code for start timer is
Timer's code
I made repeat timer(timer's ID will be save into array) and I have this errors
Quote:
Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : error 012: invalid function call, not a valid address E:\Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : warning 215: expression has no effect E:\Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : warning 215: expression has no effect E:\Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : error 001: expected token: ";", but found ")" E:\Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : error 029: invalid expression, assumed zero E:\Silvio\Projekti\Pawno\GameModovi\Od nula\Haswell RolePlay\pawno\include\HRP\HRP_timers.inc(395) : fatal error 107: too many error messages on one line |
Код:
_HRP_SpeedoTimer[playerid] = repeat _HRP_Speedo(playerid, GetPlaverVehicleID(playerid));
Код:
timer _HRP_SpeedoTimer[18000](playerid, _vID) // LINE WITH ERROR { new _string[18]; format(_string, 18, "%.3f Mi", _HRP_Vozilo[_vID][_vKilometraza]); PlayerTextDrawSetString(playerid, _HRP_Speedo[playerid][true], _string); format(_string, 10, "%.2f L", _HRP_Vozilo[_vID][_vGorivo]); PlayerTextDrawSetString(playerid, _HRP_Speedo[playerid][2], _string); return (true); }