M
M
Mikhail Ustinov2020-06-05 17:16:15
C++ / C#
Mikhail Ustinov, 2020-06-05 17:16:15

How to assign all values ​​from a list to a variable?

The point is this. I work with FiveM (who doesn't know, this is a modification of GTA 5 on the basis of which you can create custom servers). I wanted to create a command that will display in the chat what will be entered into it, I realized that all parameters after entering the command are assigned by the list. The snag itself is that I can only output the first word ( ) and this does not suit me, if I write 2 words after the command, the output will be only the first, and I need everything to be displayed, how many will not be entered into them (restrictions don't do it, or do it in about 10 words). If you need code, I can add. If the solution is very simple, do not beat me, I'm just learning) rez = text[0].toString();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-06-05
@Gggggbot

rez = string.Join(", ", text);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question