tigerman Posted June 19, 2011 Share Posted June 19, 2011 Hello dear community, i have little problem... I was going to make command that says the same what you... let me explain it with code function text( player , cmd , text ) outputChatBox("Admin says: "..text) end addCommandHandler("admsay",text) this text is argument, that should include whole sentence but unfortunately it cuts words after space one example, /admsay Hello players it outputs Admin says: Hello Any suggestion is helpful, thanks ! Link to comment
graetz Posted June 19, 2011 Share Posted June 19, 2011 try function text( player , cmd , ... ) local txt = {...} local txt = table.concat (txt, " ") outputChatBox("Admin says: "..txt) end addCommandHandler("admsay",text) 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