Command with space characters!!! Help with team names!

Recommended Posts

Hello, I have a doubt!


Supose that exist a team named "The Intocables", so I want create a marker with the color of this team, but when I put the command "createwarp The Intocables" I have a problem with  the parameters, because in the command it takes "The" and "Intocables" as two different parameters, so I can't take the team from name correctly.


So my question is:


Wich is the character of the space for commands? Can I do something like this? : createwarp The%Intocables


or: createwarp The_Intocables.


Help :(

Share this post

Link to post

local clanName = table.concat({clanName}, " ")

or clanName:gsub("_", " ") 

This replace underline with space.

Edited by holuzs
  • Confused 1

Share this post

Link to post
function functionName (player, cmd, ...)
	local name = table.concat({...}, " ")


Edited by IIYAMA
  • Like 1

Share this post

Link to post

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.