Need Some Help On Errors +rep
#1

Код:
C:\Users\HCC\Desktop\Linux-Server\filterscripts\fire.pwn(85) : error 018: initialization data exceeds declared size
C:\Users\HCC\Desktop\Linux-Server\filterscripts\fire.pwn(119) : error 032: array index out of bounds (variable "RandomFireSpawn")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
new Float:RandomFireSpawn[][][4] =
{
    { {1182.5364,-1327.6281,13.5824}, {1862.2970,-1599.9858,13.7848}, {1860.0771,-1600.0739,13.5513}, {1859.2474,-1597.2838,13.5591} },  // fire 1
    { {1973.7946,-1985.4115,14.2503}, {1977.5442,-1984.6274,13.5469}, {1979.5101,-1986.4177,13.5469}, {1982.7335,-1988.6499,13.5469} },   // fire 2
    { {2266.7959,-2254.1270,13.5469}, {2272.7290,-2254.7043,13.5391}, {2269.3757,-2250.5195,13.6066}, {2266.6089,-2261.3516,14.7647} },   //fire 3
    { {1712.4866,-1578.0426,13.9531}, {1711.2500,-1579.9148,13.9531}, {1709.7432,-1577.2561,13.5469}, {1712.4642,-1574.3247,13.9531}, {1710.4480,-1571.3136,13.9531}}   //fire 3

};
Reply
#2

Just remove the 4 from the 3 dimensional array the third one.


pawn Код:
new Float:RandomFireSpawn[][][] =
{
    { {1182.5364,-1327.6281,13.5824}, {1862.2970,-1599.9858,13.7848}, {1860.0771,-1600.0739,13.5513}, {1859.2474,-1597.2838,13.5591} },  // fire 1
    { {1973.7946,-1985.4115,14.2503}, {1977.5442,-1984.6274,13.5469}, {1979.5101,-1986.4177,13.5469}, {1982.7335,-1988.6499,13.5469} },   // fire 2
    { {2266.7959,-2254.1270,13.5469}, {2272.7290,-2254.7043,13.5391}, {2269.3757,-2250.5195,13.6066}, {2266.6089,-2261.3516,14.7647} },   //fire 3
    { {1712.4866,-1578.0426,13.9531}, {1711.2500,-1579.9148,13.9531}, {1709.7432,-1577.2561,13.5469}, {1712.4642,-1574.3247,13.9531}, {1710.4480,-1571.3136,13.9531}}   //fire 3

};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)