SA-MP Forums Archive
error 001: expected token: "}", but found ";" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 001: expected token: "}", but found ";" (/showthread.php?tid=651101)



error 001: expected token: "}", but found ";" - ServerFiles - 13.03.2018

Код:
./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 



Re: error 001: expected token: "}", but found ";" - AdamsLT - 13.03.2018

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


Re: error 001: expected token: "}", but found ";" - ServerFiles - 13.03.2018

oh ye, thanks, didn't see that