Jump to content

String from command


Recommended Posts

Posted (edited)

Hey. Is there any way to get string with spaces from arguments in command? For example i want to get complete string when using command: /getstring String with spaces

So it doesn't count as other arguments, and it should return one complete string.

Edited by majqq
  • Moderators
Posted (edited)

 


function test (arg1, arg2, ...)
	local restOf = table.concat({...}, " ")
end

 

... < dynamic arguments.

 

function test2 (...)
  setElementPosition(...)
end

test2(element, 1220, 100, 100)

 

Edited by IIYAMA
  • Like 1

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