joedajoester Posted January 16, 2012 Posted January 16, 2012 Whats wrong with this? function connect() outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", getRootElement(), 0, 255, 0) end addEventHandler("onPlayerConnect", getRootElement(), connect)
Castillo Posted January 16, 2012 Posted January 16, 2012 function connect() outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) end addEventHandler("onPlayerJoin", getRootElement(), connect) "onPlayerConnect" event is when a player CONNECTS to the server, not when he joins. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
joedajoester Posted January 16, 2012 Author Posted January 16, 2012 Doesnt work i get no error. function connect() outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks. You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) end addEventHandler("onPlayerJoin", getRootElement(), connect)
Castillo Posted January 16, 2012 Posted January 16, 2012 I would say that the text is too long, I tried it too and it didn't work, I tried it with a smaller text and it worked. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
TAPL Posted January 17, 2012 Posted January 17, 2012 make it with two outputChatBox function connect() outputChatBox("Hello, i am your assistant. You can ask me questions and i will perform tasks.", source, 0, 255, 0) outputChatBox("You can even ask for a car, or weapon. You can also talk to me! Go ahead, have fun!", source, 0, 255, 0) end addEventHandler("onPlayerJoin", getRootElement(), connect)
joedajoester Posted January 17, 2012 Author Posted January 17, 2012 thats what i allready did. thank you
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