HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question with arrays and player numbers

07-19-2003, 10:18 PM#1
FyreDaug
If I create a string with 12 indexes, does that mean index 0-11?

If there is a trigger that says:

Code:
Set STRING[player number of player 1] = Hello

What index will it be saved in? 0 or 1?

Would creating a variable with 1 index actually have 2? 0 and 1? or just 0.... or 1? I'm confused.
07-20-2003, 11:27 AM#2
AIAndy
War3 allocates arrays dynamically and it does not matter if you begin with 0 or 1.
In the GUI player numbers begin with 1, in custom text with 0 if you use the natives.