1. Post #1

    February 2011
    14 Posts
    Code:
    function dupa()
    	timer.Simple(5, function()
    		Msg("Test number 1!") // This message doesn't appear after 5 seconds.
    		chat.Add("Test number 2!") // This too
    	end)
    end
    
    concommand.Add("dupa", dupa)

  2. Post #2
    pointblankrp
    TylerB's Avatar
    October 2011
    882 Posts
    chat.Add isn't a function. chat.AddText is.

  3. Post #3

    February 2011
    14 Posts
    Works. I'm curious why I didn't saw any debug messages.
    EDIT: The Timer doesn't work when the console is open.

  4. Post #4
    Awesome Gmod Servers!
    brandonj4's Avatar
    September 2011
    2,073 Posts
    Works. I'm curious why I didn't saw any debug messages.
    EDIT: The Timer doesn't work when the console is open.
    Being in singleplayer causes garry'smod to pause when in the escape menu or console that's why.
    Reply With Quote Edit / Delete Reply Windows 7 Canada Show Events Agree Agree x 3 (list)