SA-MP Forums Archive
[Help] Timers - 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: [Help] Timers (/showthread.php?tid=301100)



[Help] Timers - nilanjay - 03.12.2011

I created a timer system but i go some errors
Код:
C:\Users\PART\Desktop\0.3d\gamemodes\test.pwn(160) : error 036: empty statement
C:\Users\PART\Desktop\0.3d\gamemodes\test.pwn(162) : error 017: undefined symbol "i"
C:\Users\PART\Desktop\0.3d\gamemodes\test.pwn(164) : error 017: undefined symbol "i"
The lines are
pawn Код:
for(new i; i<MAX_PLAYERS; i++);
     {
        if(IsPlayerConnected(i))
        {
            SetPlayerTime(i, THrs, Tsec);
        }
     }



Re: [Help] Timers - Alureon - 03.12.2011

Try this
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
     {
        if(IsPlayerConnected(i))
        {
            SetPlayerTime(i, THrs, Tsec);
        }
     }



Re: [Help] Timers - nilanjay - 03.12.2011

Thanks it works


Re: [Help] Timers - xMichaelx - 03.12.2011

pawn Код:
for(new i = 0; i<MAX_PLAYERS; i++);
     {
        if(IsPlayerConnected(i))
        {
            SetPlayerTime(i, THrs, Tsec);
        }
     }
Also Alureon all you did was copy and paste his version this doesn't help?


Re: [Help] Timers - Alureon - 03.12.2011

Look at mine and his, i took something out.