Well, in small, you can only have these things on global scope:
- - comments
- preprocessor stuff
- global variable definitions
- function declarations and definitions
Real statements like assigments are
not allowed there (the only entry points in small programs are public functions; the host applications decides when to call those; so from a logical point of view, when would code placed outside any function be executed?) .
If you want to simply initialize the global variable to the specified values, do:
Code:
new Float:colors[TOTALCOLORS][3] = { {123.0, 123.0, 123.0}, {456.0, 456.0, 456.0}, {789.0, 789.0, 789.0} }
Maybe you'd like to declare the variable const as well if small supports it.
edit: freaking typos!
Brad: I'm CHUCK NORRIS and I HAVE A BEARD
__________________