StreetSaintz Posted January 3, 2013 Share Posted January 3, 2013 hello i got this script function lol(thePlayer) redirectPlayer(thePlayer,109.230.236.105,7744) end addEventHandler("onPlayerJoin", getRootElement(), lol) but i keep getting error : SCRIPT ERROR: redirect1/server.lua:2: malformed number near '109.230. 236.105' [14:35:12] WARNING: Loading script failed: redirect1/server.lua:2: malformed num ber near '109.230.236.105' whats wrong? Link to comment
Castillo Posted January 3, 2013 Share Posted January 3, 2013 IP has to be a string, plus, 'thePlayer' is not a player element on this event, you must use 'source'. function lol() redirectPlayer(source,"109.230.236.105",7744) end addEventHandler("onPlayerJoin", getRootElement(), lol) Link to comment
TD[M]ER Posted January 3, 2013 Share Posted January 3, 2013 hello i got this script function lol(thePlayer) redirectPlayer(thePlayer,109.230.236.105,7744) end addEventHandler("onPlayerJoin", getRootElement(), lol) but i keep getting error : SCRIPT ERROR: redirect1/server.lua:2: malformed number near '109.230. 236.105' [14:35:12] WARNING: Loading script failed: redirect1/server.lua:2: malformed num ber near '109.230.236.105' whats wrong? addEventHandler("onPlayerJoin", root, function() redirectPlayer (source,"ip",tonumber(port)) end ) Link to comment
abu5lf Posted January 3, 2013 Share Posted January 3, 2013 @TD[M]ER That's already posted Solidsnake14. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now