• timer.Simple
    2 replies, posted
I´ve scripted this timer: [lua]timer.Simple("LetsBeginTheFun",15 function() PrintMessage( HUD_PRINTCENTER, "Sudden Death has started!") ServerLog("Sudden Death has started!") DeathEvent() ThisMusic() end)[/lua] But the console is giving my an error for that: [ERROR] addons/ttt sudden death - newage/lua/autorun/suddendeathmatch.lua:38: ')' expected near 'function' 1. unknown - addons/ttt sudden death - newage/lua/autorun/suddendeathmatch.lua:0 And I don´t know what I am doing wrong.
You're missing a , between 15 and function() [CODE] timer.Simple("LetsBeginTheFun", 15, function() PrintMessage( HUD_PRINTCENTER, "Sudden Death has started!") ServerLog("Sudden Death has started!") DeathEvent() ThisMusic() end) [/CODE]
[QUOTE=Snappy29;52515979]You're missing a , between 15 and function() [CODE] timer.Simple("LetsBeginTheFun", 15, function() PrintMessage( HUD_PRINTCENTER, "Sudden Death has started!") ServerLog("Sudden Death has started!") DeathEvent() ThisMusic() end) [/CODE][/QUOTE] OMG. Thanks.
Sorry, you need to Log In to post a reply to this thread.