13 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
I know , just forget to make screenshots š
I mean, they're not really that helpful either
can I paste code ?
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/thank you!
š
arr.Append(TextNum);
Append will create a new sequence, it won't add anything into your existing arr
variable
Even if you updated arr
to be the new sequence that Append gives you, because you've declared arr
with a size of 300, you'll end up with an array of 300 0s and then the new TextNum value on the endso
arr[301] will be TextNum
right?
that's right - if you make sure to assign the newly created sequence to your
arr
variable
What would probably make more sense is trying to set the value at the index of the array you're currently at? arr[0] = TextNum, arr[1] = TextNum, etc?hm
i tried to do it using for
I`ll try again , thank you
one more question
I need to change int[300] to int[0] or no?
what do you think?
update:
its working
Thank you very much!