joedajoester Posted January 16, 2012 Share 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) Link to comment
Castillo Posted January 16, 2012 Share 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. Link to comment
joedajoester Posted January 16, 2012 Author Share Posted January 16, 2012 Ok, thank you so much Link to comment
joedajoester Posted January 16, 2012 Author Share 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) Link to comment
Castillo Posted January 16, 2012 Share 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. Link to comment
TAPL Posted January 17, 2012 Share 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) Link to comment
joedajoester Posted January 17, 2012 Author Share Posted January 17, 2012 thats what i allready did. thank you 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