Razor70538

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
Posted (edited)

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

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

This replace underline with space.

Edited by holuzs
  • Confused 1

Share this post


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

@Razor70538

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.