error 001: expected token: ";", but found "-rational value-" -
Khoasmile - 30.08.2015
I get that error:
Код:
error 001: expected token: ";", but found "-rational value-"
error 054: unmatched closing brace ("}")
That is code error
Код:
new Float:ArmourOffsets[300][9]=
{
0.107633, 0.049167, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000} // 0
0.078493, 0.034810, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.109487, 1.104092} // line error #1
0.063315, 0.034810, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.109487, 1.104092} // 2
0.092731, 0.034196, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.170836, 1.000000} // 4
0.092731, 0.045053, 0.007642, 0.000000, 0.000000, 0.000000, 1.028309, 1.612226, 1.511932} // 5
0.100681, 0.023831, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.253933, 1.000000} // 6
0.078790, 0.051551, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.200000, 1.000000} // 7
0.078790, 0.051551, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.200000, 1.000000} // 8
0.101946, 0.050594, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.077174, 1.000000} // 9
0.018740, 0.057176, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.356729, 1.000000} // 10
0.109354, 0.043272, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000} // 11
0.088702, 0.044153, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.069393, 1.000000} // 12
0.149637, 0.039576, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.097013, 1.000000} // 13
0.077018, 0.047786, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.097013, 1.000000} // 14
0.087480, 0.056477, 0.000000, 0.000000, 0.000000, 354.067718, 1.000000, 1.156542, 1.000000} // 15
0.114454, 0.034469, 0.000000, 0.000000, 0.000000, 3.482777, 1.000000, 1.240040, 1.118584} // 16
0.090551, 0.056618, 0.004488, 0.000000, 0.000000, 0.000000, 1.000000, 1.187508, 1.115819} // 17
0.049171, 0.052310, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.115819} // 18
0.100945, 0.036213, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.000000} // 19
0.075301, 0.036213, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.000000} // 20
0.071603, 0.045160, 0.000000, 0.000000, 0.000000, 5.299554, 1.000000, 1.336489, 1.094958} // 21
0.071603, 0.022505, 0.000000, 0.000000, 0.000000, 5.000000, 1.000000, 1.352643, 1.191974} // 22
0.071603, 0.044524, 0.000000, 0.000000, 0.000000, 5.000000, 1.000000, 1.200000, 1.100000} // 23
0.080972, 0.052188, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.199684} // 24
0.080972, 0.052188, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.200000} // 25
0.080972, 0.050744, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.017676} // 26
0.080972, 0.050744, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.017676} // 27
0.080731, 0.050744, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.215897, 1.087169} // 28
0.043823, 0.050744, 0.000000, 0.000000, 0.000000, 5.060096, 1.000000, 1.567158, 1.279411} // 30
} // line error #2
Re: error 001: expected token: ";", but found "-rational value-" -
Logofero - 30.08.2015
Try this:
PHP код:
new Float:ArmourOffsets[][9] = {
{0.107633, 0.049167, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000}, // START
{0.078493, 0.034810, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.109487, 1.104092},
{0.063315, 0.034810, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.109487, 1.104092},
// Etc...
{0.043823, 0.050744, 0.000000, 0.000000, 0.000000, 5.060096, 1.000000, 1.567158, 1.279411} // EOF
}
Re: error 001: expected token: ";", but found "-rational value-" -
YoussefHammad - 30.08.2015
Код:
new Float:ArmourOffsets[300][9]= {
{0.107633, 0.049167, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000}, // 0
{0.078493, 0.034810, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.109487, 1.104092},// line error #1
{0.092731, 0.034196, 0.000000, 0.000000, 0.000000, 0.000000, 1.005971, 1.170836, 1.000000}, // 4
{0.092731, 0.045053, 0.007642, 0.000000, 0.000000, 0.000000, 1.028309, 1.612226, 1.511932}, // 5
{0.100681, 0.023831, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.253933, 1.000000}, // 6
{0.078790, 0.051551, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.200000, 1.000000}, // 7
{0.078790, 0.051551, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.200000, 1.000000}, // 8
{0.101946, 0.050594, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.077174, 1.000000}, // 9
{0.018740, 0.057176, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.356729, 1.000000}, // 10
{0.109354, 0.043272, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000}, // 11
{0.088702, 0.044153, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.069393, 1.000000}, // 12
{0.149637, 0.039576, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.097013, 1.000000}, // 13
{0.077018, 0.047786, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.097013, 1.000000}, // 14
{0.087480, 0.056477, 0.000000, 0.000000, 0.000000, 354.067718, 1.000000, 1.156542, 1.000000}, // 15
{0.114454, 0.034469, 0.000000, 0.000000, 0.000000, 3.482777, 1.000000, 1.240040, 1.118584}, // 16
{0.090551, 0.056618, 0.004488, 0.000000, 0.000000, 0.000000, 1.000000, 1.187508, 1.115819}, // 17
{0.049171, 0.052310, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.115819}, // 18
{0.100945, 0.036213, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.000000}, // 19
{0.075301, 0.036213, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.100000, 1.000000}, // 20
{0.071603, 0.045160, 0.000000, 0.000000, 0.000000, 5.299554, 1.000000, 1.336489, 1.094958}, // 21
{0.071603, 0.022505, 0.000000, 0.000000, 0.000000, 5.000000, 1.000000, 1.352643, 1.191974}, // 22
{0.071603, 0.044524, 0.000000, 0.000000, 0.000000, 5.000000, 1.000000, 1.200000, 1.100000}, // 23
{0.080972, 0.052188, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.199684}, // 24
{0.080972, 0.052188, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.200000}, // 25
{0.080972, 0.050744, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.017676}, // 26
{0.080972, 0.050744, 0.000000, 0.000000, 0.000000, 0.738328, 1.000000, 1.215897, 1.017676}, // 27
{0.080731, 0.050744, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.215897, 1.087169}, // 28
{0.043823, 0.050744, 0.000000, 0.000000, 0.000000, 5.060096, 1.000000, 1.567158, 1.279411} // 30
}