problem when add check point[sloved]
#1

i added new checkpoint and did every thing right with out any wrong
and when complie get errors

D:\servers\samp\new\gamemodes\1.8.pwn(882) : error 018: initialization data exceeds declared size
D:\servers\samp\new\gamemodes\1.8.pwn(884) : error 010: invalid function or declaration
D:\servers\samp\new\gamemodes\1.8.pwn(1427) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
this check point i had been added
line 882 = (-1593.3126,716.7951,-5.2422,268.3140,1.5),

line 884 = };
at end of
new Float:checkpoints[MAX_POINTS][4] = {
{2109.2126, 917.5845, 10.8203, 5.0}, // Not Used
{2640.1831, 1103.9224, 10.8203, 5.0}, // Not Used
{611.8934,1694.7921,6.7193,5.0}, // Not Used
{2256.1350,538.3187,-0.6582,10.0}, // Not Used
{-2413.7427,975.9317,45.0031,5.0}, // Not Used
{-1672.3597,414.2950,6.8866,5.0}, // Not Used
{-2244.1365,-2560.6294,31.6276,5.0}, // Not Used
{-1603.0166,-2709.3589,48.2419,5.0}, // Not Used
{1939.3275,-1767.6813,13.2787,5.0}, // Not Used
{-94.7651,-1174.8079,1.9979,5.0}, // Not Used
{1381.6699,462.6467,19.8540,5.0}, // Not Used
{657.8167,-559.6507,16.0630,5.0}, // Not Used
{-1478.2916,1862.8318,32.3617,5.0}, // Not Used
{2147.3054,2744.9377,10.5263,5.0}, // Not Used
{2204.9602,2480.3494,10.5278,5.0}, // Not Used
{1289.5997,1395.4048,10.8203,15.0}, // Not Used
{1319.7441,1253.7612,10.8203,5.0}, // Not Used
{1674.9529,1448.5413,10.7888,5.0},
{2085.2048,1263.1144,10.8203,5.0},
{2169.4319,1416.0619,10.8203,4.0},
{-2635.6731,1409.0873,906.4647,4.0},
{1940.3857,1017.9068,992.4688,2.5},
{2144.1042,1641.3715,993.5761,2.0},
{1142.1212,1.1375,1000.6797,2.5},
{1606.8721,1817.9978,10.8203,2.5},
{2788.3975,610.5909,10.8984,2.5},
{2449.3792,713.8478,11.4683,2.5},
{2193.1570,1974.6671,12.2894,1.5},
{2232.1321,959.2865,10.8203,1.5},
{1138.4005,2088.2024,11.0625,1.5},
{2540.5017,2266.1240,10.8203,1.5},
{2355.5588,1544.2212,10.8203,3.5},
{2306.5139,-15.4770,26.7496,2.5},
{2316.2385,-7.2282,26.7422,2.5},
{2234.7769,2458.9241,-7.4531,5.0},
{3795.7554,460.2423,33.9047,5.0},
{245.9921,108.6929,1003.2188,2.0},
{1099.5044,1601.8444,12.5469,5.0},
{-1424.0109,928.2040,1036.3948,2.0},
{193.8661,179.1723,1003.0234,1.0},
{198.0848,179.2339,1003.0303,1.0},
{198.0195,158.5698,1003.0234,1.0},
{968.8552,-46.3709,1001.1172,2.0},
{236.0950,166.4925,1003.0300,3.0},
{2003.6357,2319.0925,10.8203,4.0},
{2144.1226,1624.3165,993.6882,1.0},
{-22.5446,-55.6001,1003.5469,3.0},
{2581.4673,2148.2505,10.8203,5.0},
{2062.6243,2238.9121,10.1745,5.0},
{2297.3096,1567.2032,10.8203,5.0},
{2121.1802,1232.1056,10.8203,5.0},
{2198.5732,937.0938,10.8203,5.0},
{2049.3103,658.2263,11.3006,5.0},
{1654.0845,1080.9868,10.8203,5.0},
{1286.5367,1252.1665,10.8203,5.0},
{824.2954,856.6764,12.0343,5.0},
{-1689.0303,683.4731,21.7940,5.0},
{-1808.2322,-1649.6141,23.6609,5.0},
{2197.8586,938.6444,10.8203,5.0},
{1364.3669,-1282.7325,13.5469,5.0},
{1423.3719,-1292.6678,13.5592,5.0},
{2385.1118,-2009.9146,13.5537,5.0},
{-61.5190,-1112.0059,1.0781,5.0},
{-2096.9539,-2459.4238,30.6250,5.0},
{-2628.5117,211.4568,4.5494,5.0},
{-1591.4674,716.4246,-5.2422,5.0},
{-1247.3684,455.1923,7.1875,5.0},
{275.5387,1957.8539,17.6406,5.0},
{219.3790,1862.9003,13.1470,5.0},
{1271.0192,1324.8730,10.8130,5.0},
{1272.1927,1360.7340,10.8130,5.0},
{2293.2915,2468.5918,10.8203,5.0},
{2090.0583,1314.2783,10.8203,4.0},
{2355.3962,1603.7089,10.8203,5.0},
{1135.3522,2087.9800,11.0625,5.0},
{2537.2380,2266.7944,10.8203,5.0},
{2193.0132,1968.3802,10.8203,5.0},
{2229.6580,959.3417,10.8203,5.0},
{2378.7620,1609.4525,10.6719,5.0},
{2085.3196,1333.9230,10.8750,5.0},
{1132.9811,-12.0000,1000.6797,2.0},
{2446.1379,2376.3525,12.1635,5.0},
{361.8299,173.5716,1008.3828,2.5},
{1599.9943,2220.9233,11.0625,4.0},
{2189.4114,2469.1099,11.2422,4.0},
{2637.3494,1127.8949,11.1797,4.0},
{2117.3906,898.2151,11.1797,4.0},
{662.1166,1717.9940,7.1875,4.0},
{2151.1006,2735.6091,11.1763,4.0},
{356.7246,215.6280,1008.3828,3.0},
{315.9641,1033.0465,1946.4037,4.5},
{-2237.7969,2353.4224,4.9804,3.0},
{2324.4875,-1014.3350,1050.2178,3.0},
{1464.9091,1920.2568,11.4609,3.0},
{225.5270,1292.9052,1082.1406,2.0},
(-1593.3126,716.7951,-5.2422,268.3140,1.5),
{-2059.1699,894.0970,60.4871,5.0}
};

line 1427 = };
at end of
new checkpointType[MAX_POINTS] = {
CP_STATION1,
CP_STATION2,
CP_STATION3,
CP_STATION4,
CP_STATION5,
CP_STATION6,
CP_STATION7,
CP_STATION8,
CP_STATION9,
CP_STATION10,
CP_STATION11,
CP_STATION12,
CP_STATION13,
CP_STATION14,
CP_STATION15,
CP_STATION16,
CP_AIRCOPS1,
CP_LVAPORT1,
CP_LVADMIN1,
CP_LVCARSELL,
CP_LVADMINEX,
CP_FOURDRAGS,
CP_CALIGS,
CP_REDSANDS,
CP_HOSPLV,
CP_BANCPCAR,
CP_LVDRGHSE,
CP_ATM247,
CP_ATMAMUSTH,
CP_ATMWHITE,
CP_ATMROCEST,
CP_BANKMAIN,
CP_BANKMAINX,
CP_BANKBUSNES,
CP_LVPDARMSDE,
CP_ALKATRAZ1,
CP_ALKATRAZ2,
CP_BLKFSTAD,
CP_BLKFSTADX,
CP_LVPDCCAM3,
CP_LVPDCCAM2,
CP_LVPDCCAM1,
CP_ADMINBAR,
CP_PDGIVEUP,
CP_8BALLSUP,
CP_CALIGPLNT,
CP_247CP1,
CP_TRASHPICKUP1,
CP_TRASHPICKUP2,
CP_TRASHPICKUP3,
CP_TRASHPICKUP4,
CP_TRASHPICKUP5,
CP_TRASHPICKUP6,
CP_TRASHPICKUP7,
CP_TRASHPICKUP8,
CP_TRASHPICKUP9,
CP_TRASHPICKUP10,
CP_TRASHPICKUP11,
CP_GUNDELIVERY1,
CP_GUNDELIVERY2,
CP_GUNDELIVERY3,
CP_GUNDELIVERY4,
CP_GUNDELIVERY5,
CP_GUNDELIVERY6,
CP_GUNDELIVERY7,
CP_GUNDELIVERY8,
CP_GUNDELIVERY9,
CP_GUNDELIVERY10,
CP_GUNDELIVERY11,
CP_GUNDELIVERY12,
CP_GUNDELIVERY13,
CP_GUNDELIVERY14,
CP_WINCARADMINHQ,
CP_CASHDELPICKUP,
CP_CASHDELATM1,
CP_CASHDELATM2,
CP_CASHDELATM3,
CP_CASHDELATM4,
CP_CASHDELEND,
CP_BMUKCASENTR,
CP_REDSANDSEXIT,
CP_CITYHALLENTER,
CP_CITYHALLMAIN,
CP_247REDSANDS,
CP_247EMERALD,
CP_247SEASTLV,
CP_247SOUTHLV,
CP_247BONECOUN,
CP_247SPINYBED,
CP_ROBCITYHALL,
CP_BIGASSPLANE,
CP_ADHQ,
CP_BAR,
CP_LOANSHARK,
CP_LOANSHARKMAIN,
CP_HOSPITALSF,
CP_LOANSHARKEXIT
};
Reply
#2

any help?
Reply
#3

error 018: initialization data exceeds declared size
That means you have too much checkpoints.
Reply
#4

Quote:
Originally Posted by ikarus[PSYCHO
]
error 018: initialization data exceeds declared size
That means you have too much checkpoints.
Quote:
Originally Posted by ikarus[PSYCHO
]
error 018: initialization data exceeds declared size
That means you have too much checkpoints.
i forget edit max_points
i edited it and get only 1 error

D:\servers\samp\new\gamemodes\1.8.pwn(783) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

line 783 = };

at end of


new Float:checkCoords[MAX_POINTS][4] = {
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
{1658.02, 1279.851, 1771.26, 1705.338}, // Las Venturas Airport Teriminal
{2059.8872, 1202.8521, 2120.8960, 1302.8754}, // RPL
{2040.695, 1395.893, 2204.698, 1492.594}, // AutoBahn Selling Checkpoint
{-2646.0603, 1402.8860, -2634.2737, 1411.6195}, // RPL Exit
{1926.6289, 1004.3832, 2017.2037, 1031.9709}, // Four Dragons Casino robbing point
{2141.2183, 1629.5417, 2147.1643, 1642.7115}, // Caligulas Vault Rob checkpoint
{1137.0602, -11.2906, 1142.6293, 3.0941}, // Redsands Robbing point
{1533.065, 1713.074, 1654.115, 1879.401}, // LV hospital
{2657.661, 575.8629, 2813.854, 699.641}, // Abandoned cop car
{2329.653, 633.8839, 2478.038, 800.2107}, // LV Drug house
{2126.601, 1937.422, 2224.223, 2018.651}, // ATM at 24/7 at Starfish casino
{2181.269, 927.8569, 2243.747, 997.4821}, // ATM at Ammunation south LV
{1068.388, 2026.388, 1181.628, 2119.221}, // Whitewood Estates atm
{2466.323, 2223.659, 2599.088, 2347.437}, // ATM Roca escalante
{2306.224, 1527.407, 2407.75, 1577.692}, // LV City Bank entry
{2304.9456, -17.3404, 2313.7649, -13.2493}, // LV City Bank exit
{2314.5757, -17.2502, 2317.1465, -0.1237}, // LV City bank main business
{2221.0667, 2448.5840, 2260.7422, 2487.7661}, // LVPD Weapons refill
{3539.1328, 382.3327, 4085.4063, 560.8972}, // Alcatraz Entry
{240.1793, 107.4361, 252.6249, 126.7327}, // Alcatraz Exit
{998.1006, 1384.289, 1201.153, 1805.908}, // blackfield stadium entry
{-1426.2727, 928.1482, -1421.1447, 938.1354}, // blackfield stadium exit
{191.9815, 177.5239, 195.3998, 180.5036}, // lvpd cell camera 3
{196.1084, 177.4886, 200.0713, 180.7824}, // lvpd cell camera 2
{195.9898, 156.5928, 200.1871, 159.8862}, // lvpd cell camera 1
{965.4654, -49.4240, 971.9686, -43.0032}, // Admin HQ Bar
{228.7872, 141.2361, 249.2870, 168.5767}, // lvpd hand yourself in
{2002.7880, 2317.5369, 2016.6089, 2332.7124}, // 8 ball c4 supply
{2129.9563, 1607.1721, 2158.4114, 1625.4816}, // caligs plant bomb
{-35.3856, -57.9658, -17.7096, -49.0101}, // 24 7 cpoint
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 1
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 2
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 3
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 4
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 5
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 6
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 7
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 8
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 9
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 10
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 11
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 1 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission1 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 2 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 2 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 3 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 3 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 4 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 4 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 5 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 5 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 6 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 6 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 7 pick
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 7 drop
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // wincaradminhq
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash pickup
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm1
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm2
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm3
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm4
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel van back to base
{2040.695, 1306.927, 2110.982, 1357.212}, // extra casino entry on the strip
{1130.4017, -11.2694,1135.5321, -3.8149}, // redsands new exit
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // city hall lv entry
{4446.9814, 1987.1090, 4453.0605, 1992.0865}, // city hall main
{1562.7677, 2169.2029, 1616.5474, 2242.2063}, // 247 redsands
{2158.1504, 2448.4175, 2215.2781, 2495.0105}, // 247 emerald
{2618.1211, 1062.8726, 2657.2705, 1142.5107}, // 247 south east lv
{2097.0437, 883.9355, 2137.2776, 963.3201}, // south lv
{580.282, 1670.526, 689.6177, 1763.359}, // 247 bone county
{2115.3542, 2708.7834, 2172.6797, 2777.5857}, // 247 spiny bed
{351.3314, 196.9337, 368.2675,217.0970}, // robcityhall
{311.4730, 975.7504, 320.0443,1038.1334}, // bigassplane
{-2300.9724, 2200.7102, -2200.5178, 2400.7761}, // adhq
{2321.2236,-1016.6204,2328.2024,-1016.5899},// ADHQ Bar
{1430.0867,1890.1573,1500.4915,1950.5049}, // LoanShark
{200.0041,1287.3019, 240.6371,1291.6040}, // Loan Shark inside
{-2082.1331,845.2881,-2014.3762,902.5603} // Exited Loan Shark
// min x, min y, max x, , max y
};



max_points = 97
Reply
#5

yes, and you have to delete some of them.
Reply
#6

edited reply
Reply
#7

u can change the max amount of checkpoints
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)