• Question about timers
    4 replies, posted
Would you run into a problem if you had multiple players creating the same timer at different periods? My countdown timer currently has a mind of its own and I am wondering if that's why. [code] timer.Create( "Time_Keeper", 1, 0, TimeKeeper ) [/code]
If they're client-side, no. If you make a new timer with the same name, the old one is overwritten which comes to the next point: If they're server-side, yes there will be problems due to the aforementioned reason.
Yes it is server side. This may be retarded but i tried giving the timer a random 6 digit number for a name but I ran into problems with it. What would the workaround for this be ply:SendLua? **Edit** Could you make the timer in a client side file, then call it serverside?
[QUOTE=Swiftone;42217712]Yes it is server side. This may be retarded but i tried giving the timer a random 6 digit number for a name but I ran into problems with it. What would the workaround for this be ply:SendLua? **Edit** Could you make the timer in a client side file, then call it serverside?[/QUOTE] No. Your best bet would be adding ply:SteamID() or ply:UniqueID() to the timer name.
Thanks again Robot, I will give it a shot!
Sorry, you need to Log In to post a reply to this thread.