27.02.2013, 17:03
Thx for the reply ******, I was just trying your timer library. Here's what I did:
When I compile, I get this:
What am I doing wrong here?
Код:
#define FILTERSCRIPT #include <a_samp> #include <foreach> #include <YSI\y_timers> #if defined FILTERSCRIPT public OnFilterScriptInit() { task RepeatingTimer[60000]() { foreach (new i : Player) { TogglePlayerClock(i, 1); SetPlayerTime(i,0,0); } return 1; } } public OnFilterScriptExit() { foreach (new i : Player) { TogglePlayerClock(i, 0); } return 1; } #else main() #endif
Код:
C:\Users\HeLiOn\Desktop\night24.pwn(12) : error 017: undefined symbol "RepeatingTimer@yT_" C:\Users\HeLiOn\Desktop\night24.pwn(12) : error 029: invalid expression, assumed zero C:\Users\HeLiOn\Desktop\night24.pwn(12) : error 017: undefined symbol "RepeatingTimer@yT_" C:\Users\HeLiOn\Desktop\night24.pwn(12) : fatal error 107: too many error messages on one line