• RunConsoleCommand error
    3 replies, posted
I'm having trouble with RunConsoleCommand. When I join my server, I'm greeted with this error [code] [ERROR] gamemodes/ponyfuckingsimulator/gamemode/cl_init.lua:49: ')' expected near '(' [/code] Here's line 49 of my cl_init.lua [code] DButton4.DoClick = function(RunConsoleCommand("connect","127.0.0.1")) end [/code] If I comment this line out, it runs fine :c
[lua] DButton4.DoClick = function() RunConsoleCommand("connect","127.0.0.1") end [/lua]
[QUOTE=>>oubliette<<;40546309][lua] DButton4.DoClick = function() RunConsoleCommand("connect","127.0.0.1") end [/lua][/QUOTE] Thanks, it works now :$
Sorry, you need to Log In to post a reply to this thread.