error 001: expected token: "}", but found ";"
#1

Код:
./assets/enums.pwn(1234) : error 008: must be a constant expression; assumed zero
./assets/enums.pwn(1248) : error 001: expected token: "}", but found ";"
PHP код:
enum hInteriors
{
    
intLevel,
    
intModel,
    
Float:intX,
    
Float:intY,
    
Float:intZ,
    
intPrice,
}
new 
IntInfo[][hInteriors] = {
  {
012445.04508.861001.420},
  {
182807.62, -1171.901025.57500000},
  {
21027.131341.151084.38750000},
  {
362333.11, -1075.101049.021000000,
  {
44261.001286.001080.26001250000}, //line1234
  
{552350.34, -1181.651027.981500000},
  {
6102268.39,-1210.451047.751750000},
  {
75318.571118.211083.882000000},
  {
82219.341251.261082.152250000},
  {
95295.341473.091080.262500000},
  {
102447.731400.441084.302750000},
  {
11112282.91, -1138.291050.903000000},
  {
12983.301324.701083.863250000},
  {
1362194.79, -1204.351049.023500000},
  {
1482365.30, -1132.921050.883750000},
  {
155227.721114.391080.994000000},
  {
167225.741024.541084.004500000},
  {
1791261.4819, -785.46331091.90636500000}
}; 
//line 1248 
Reply
#2

You missed a curly bracket above line 1234

{3, 6, 2333.11, -1075.10, 1049.02, 1000000, <- here, it's missing before the last comma
Reply
#3

oh ye, thanks, didn't see that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)