Jump to content

help


joedajoester

Recommended Posts

Posted

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) 

Posted
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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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) 

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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) 

CiTLh.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...