Why aren't these 2 codings good enough to compile?
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#define TOTALCOLORS 3
new Float:colors[TOTALCOLORS][3]
colors[0] = {123.0, 123.0, 123.0}
colors[1] = {456.0, 456.0, 456.0}
colors[2] = {789.0, 789.0, 789.0}
//rest of code
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#define TOTALCOLORS 3
new Float:colors[TOTALCOLORS][3]
colors[0][0] = 255.0; colors[0][1] = 0.0; colors[0][2] = 0.0;
colors[1][0] = 165.0; colors[1][1] = 0.0; colors[1][2] = 0.0;
colors[2][0] = 255.0; colors[2][1] = 100.0; colors[2][2] = 100.0;
In fact, the 2 pieces of code are the same (code 2 is done much more differcult ;) )
(they both don't work)
Whats the problem?
TiA
__________________