Just cant seem to work it out, im relatively new to C#
[DOUBLEPOST=1449034692][/DOUBLEPOST]Scrap that i worked it outCode:void OnPlayerRespawned(BasePlayer player) { timer.Once(3, () => { if (player.IsSleeping()) player.EndSleeping(); } }
Code:void OnPlayerRespawned(BasePlayer player) { timer.Once(3, () => { if (player.IsSleeping()) player.EndSleeping(); }); }
Solved Can't figure out timers
Discussion in 'Rust Development' started by virobeast, Dec 2, 2015.
-
Uh, are you using a IDE like Visual Studio? Those kinda of sintax errors are instantly highlighted
-
yeh i moved to visual studio to fix it, i was having a spaz attack in notepad++ before that lol.