xScatta Posted September 28, 2013 Posted September 28, 2013 (edited) hey guys code here problem below: CODE REMOVED problem is here because i cant join to world by name like im creating world /createworld lol and i can use /joinworld lol to join into it help! Edited September 28, 2013 by Guest It's fine to celebrate success but it is more important to heed the lessons of failure.
Castillo Posted September 28, 2013 Posted September 28, 2013 dimension = 0 names = { } function worldc ( playerSource, _, name ) dimension = ( dimension + 1 ) setElementDimension ( playerSource, dimension ) names [ name ] = dimension --setElementData(names[name],name,dimensions[dimension]) outputChatBox ( "#00FF00*You has successfully created world named ".. name .."!", playerSource, 0, 0, 0, true ) end function worldj ( player, _, name ) if names [ name ] then setElementDimension ( player, names [ name ] ) outputChatBox ( "#00FF00*You has moved to world ".. name .."!", player, 0, 0, 0, true ) else outputChatBox ( "#00FF00*That world doesn't exist!", player, 0, 0, 0, true ) end end function worlde ( playerx ) setElementDimension ( playerx, 0 ) outputChatBox ( "#00FF00*You has exited the world!", playerx, 0, 0, 0, true ) end addCommandHandler ( "createworld", worldc ) addCommandHandler ( "joinworld", worldj ) addCommandHandler ( "exitworld", worlde ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xScatta Posted September 28, 2013 Author Posted September 28, 2013 Thanks it works! But can you delete code Im wanna to make it unique It's fine to celebrate success but it is more important to heed the lessons of failure.
Castillo Posted September 28, 2013 Posted September 28, 2013 Why do you use a public forum if you don't want others to see your code? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xScatta Posted September 28, 2013 Author Posted September 28, 2013 Ohh okay . It's fine to celebrate success but it is more important to heed the lessons of failure.
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