Gamearray: Difference between revisions
Jump to navigation
Jump to search
Dr. Kylstien (talk | contribs) Fixed an inacurracy about reading from arrays. |
Dr. Kylstien (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
gamearray <name> <size> | A gamearray is a CON version of the array data type common in programming languages. A gamearray is defined with: gamearray <name> <size>. Values in the array are accessed as <name>[<index>] with any command that reads from [[gamevar]]s. However, as of the May 16, 2008 snapshot, some commands may crash when used with a gamearray, so to be safe, use setvarvar to copy the value to a [[gamevar]]. Values can only be set with [[setarray]]. | ||
Revision as of 15:58, 26 May 2008
A gamearray is a CON version of the array data type common in programming languages. A gamearray is defined with: gamearray <name> <size>. Values in the array are accessed as <name>[<index>] with any command that reads from gamevars. However, as of the May 16, 2008 snapshot, some commands may crash when used with a gamearray, so to be safe, use setvarvar to copy the value to a gamevar. Values can only be set with setarray.