General > Developers Corner
Server Redirect (Command & Auto)
goodman854:
--- Quote from: Princess Twilight Sparkle on February 07, 2014, 05:11:50 AM ---Since you don't have ply defined, replace it with LocalPlayer() and try that.
--- End quote ---
Didn't work but... I am getting this:
--- Code: ---clientside lua startup!
Lua JIT is DISABLED!
TEST [lua/autorun/gmt_playermodels.lua][lua/autorun/redirect.lua]
[ERROR] lua/autorun/redirect.lua:5: attempt to call method 'SendLua' (a nil value)
1. unknown - lua/autorun/redirect.
--- End code ---
Cobalt:
Dude what are you doing, you can't just put it in there without any other code and expect it to do exactly what you want it to do. also you need an actual IP address...
make it a function and have the client call the function when they want to switch servers, or get a derma menu and a button to make the player join the server.
On top of that, sendlua is a server side function. No need for it on the client side.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version