Error 018 & Error 010
#1

pawn Код:
]
    {-1,"Center & Club","Sprint",8,1,5,240,0,-2004.0145,1066.0697,55.2974,-1,
        {-2007.350952,1045.442016,55.363998,180.0,
        -1998.630004,1052.240966,55.363998,180.0,
        -2003.567993,1052.240966,55.369998,180.0,
        -2008.553955,1052.240966,55.369998,180.0,
        -1998.630004,1059.282958,55.369998,180.0,
        -2003.567993,1059.282714,55.369998,180.0,
        -2008.553955,1059.282714,55.369998,180.0},17},
    {-1,"Pier & Paradise","Sprint",8,1,6,270,0,-2035.1224,1301.4928,6.9146,-1,
        {-2025.6409912109,1313.8170166016,6.9320001602173,262.0,
        -2026.7230224609,1308.9239501953,6.9320001602173,268.0,
        -2027.2740478516,1304.0279541016,6.9260001182556,267.99499511719,
        -2029.5450439453,1294.5959472656,6.9169998168945,261.99499511719,
        -2029.8759765625,1290.2960205078,6.9079999923706,261.99096679688,
        -2030.5920410156,1286.0589599609,6.9039998054504,261.99096679688,
        -2034.9389648438,1301.7969970703,6.9869999885559,265.99499511719,
        -2035.3050537109,1298.2919921875,6.9869999885559,261.98999023438},19},
    {-1,"Garcia & Flats","Circuit",8,1,4,400,3,-2255.9561,-70.2683,34.8990,-1,
        {-2263.040039,-64.305,34.972,0.0,
        -2257.771972,-64.397003,34.972,0.0,
        -2253.031005,-64.427001,34.972,0.0,
        -2248.241943,-64.513999,34.972,0.0,
        -2262.887939,-72.419998,34.972,0.0,
        -2257.696044,-72.415,34.972,0.0,
        -2252.900878,-72.369003,34.972,0.0,
        -2248.135009,-72.310997,34.972,0.0},13},
    {-1,"Verona Heights","Circuit",8,1,6,300,3,632.0135,-1700.1470,14.8855,-1,
        {621.776,-1716.198974,13.795,352.0,
        626.723999,-1717.005981,13.789999,351.996459,
        631.71997,-1717.847045,13.795,351.996459,
        636.875976,-1718.604003,13.795,351.996459,
        622.849975,-1708.277954,14.255,351.996459,
        627.981994,-1709.062988,14.194999,351.996459,
        637.729003,-1710.859985,14.071999,351.996459,
        632.700988,-1709.759033,14.149,351.996459},14},
        // Added race is below, where errors come from.
    {-1,"SF - AP","Sprint",8,1,6,280,3,-2875.9670,-915.0253,9.1057,-1,
        {-2934.7251,-1319.8619,11.3407,175.1902,
         -2891.4204,-1731.0710,24.6944,194.5900,
         -2680.0078,-2029.3401,42.7011,232.2932,
         -2500.4255,-2196.2642,28.4608,217.9405,
         -2426.1116,-2285.0332,13.9201,230.6432},15}
};
This is the code of my current race tracks, but I get 2 errors when I added the SF - AP Sprint.

Код:
C:\Users\Prive\Desktop\SAMPSERVER\gamemodes\nfsw.pwn(311) : error 018: initialization data exceeds declared size
C:\Users\Prive\Desktop\SAMPSERVER\gamemodes\nfsw.pwn(318) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Those are the errors, which are not really known for me. I can't get up the problem so if anyone can tell me I'm happy.
Reply
#2

Could you please show the whole function? Or is that all?
Reply
#3

Give the lines 311 and 318
Reply
#4

Quote:
Originally Posted by Twizted
Посмотреть сообщение
Could you please show the whole function? Or is that all?
This is all.

@Terrow: It happens under the comment I added. Those are 312 and the
Код:
-2426.1116,-2285.0332,13.9201,230.6432},15}
is 318.

311 gives an error because there's a mistake in 312, not sure why it is like this but that's something in pawno.
Reply
#5

Show us the array definition
Reply
#6

It seems I solved it already, a mistake in MAX_RACES. Thanks for helping guys, but I failed myself.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)