StreetSaintz Posted January 3, 2013 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?
Castillo Posted January 3, 2013 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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
TD[M]ER Posted January 3, 2013 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 ) visit server x[ Q.5 ]x Drift & zombies & war we have a chance for change ... let's try something new =D
abu5lf Posted January 3, 2013 Posted January 3, 2013 @TD[M]ER That's already posted Solidsnake14. ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
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