Team Spartan Cookies & Milk Forums
potential timer bug - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: potential timer bug (/thread-890.html)



potential timer bug - TheOneAndOnlyTee - 28-04-2015

for the past day or so i've been trying to network my screens and i thought i was making a mistake until i tried testing the timer and when the print() didn't show i did more tests, it seems the timer doesn't work on screens when used inside the SERVER enviroment. here's what i used


--@name test
--@author T-16

if SERVER then
A = 0

timer.create("testing",0.1,0,function()
A = A + 1
end )

if timer.exists("testing") then
print("exists")
end

else
end

after asking Loc and him not being able to open the chip, i facepalmed and realised that the nonexistance --@sharedscreen had caused this


RE: potential timer bug - Person8880 - 28-04-2015

Yeh, --@shared(screen, don't need the screen bit anymore) is needed for the server to do anything.

So I guess this is closed?