Jump to content

Problem with command argument


tigerman

Recommended Posts

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

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