Solved Can't figure out timers

Discussion in 'Rust Development' started by virobeast, Dec 2, 2015.

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