23.10.2009, 13:50
I've got 2 warnings and one error. I don't know what I did do wrong.
This are the warnings:
This is my script:
Can you help me?
This are the warnings:
Code:
\\(17) : warning 228: length of initialler exceeds size of the enum field \\(18) : warning 228: length of initialler exceeds size of the enum field \\(19) : error 008: must be a constant expression; assumed zero
pawn Code:
enum aHouseCar{CarName[24],CarModel,CarCost};
new VHouseCar[aHouseCar] =
{
{"Landstalker", 400, 20000},
{"Bravura", 401, 18000}, // line 17
{"Sentinel", 405, 17500}, // line 18
{"Manana", 410, 16000}, // line 19
{"Infernus", 411, 32000},
{"Cheetah", 415, 30000},
{"Turismo", 451, 35000},
{"SuperGT", 506, 30000},
{"Bullet", 541, 34000},
{"Uranus", 558, 27000},
{"Sultan", 560, 28000},
{"Elegy", 562, 28000},
};