Hey! So I created a positioning system but on screen first place is displayed as 0 and second as 1 etc. How to start array from 1? Not 0? Thanks in advance!
Screen to make it clear:
Hey! So I created a positioning system but on screen first place is displayed as 0 and second as 1 etc. How to start array from 1? Not 0? Thanks in advance!
Screen to make it clear:
You can set 0 to be 0 or null and not use it, but its much easier to start from 0
If i set it to null, I will not be able to see which car is first. It’s easier for me to make it in one line allSortedCars.Append (i + ". " + cars [i] + "\n");
and not to create another table for it. So is it possible or not?
Why dont you add one to i?
allSortedCars.Append((i+1)+". " + Cars +"\n");
I dont think it can and also i dont see why it must start at 1 as you can always count from 0 or when counting define that 0 is 1 and start counting
Thanks xD It works now. I don’t know why I didn’t think about it