how solvet that
#1

i get 1 error

Код:
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\DANGEROS.pwn(793) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
How solvet that or fix that
Reply
#2

Can you show us this line?
Reply
#3

793
Код:
 };
Reply
#4

Quote:
Originally Posted by BLACK-RIDER-1692
793
Код:
 };
And your first line of this array is something like that right?
pawn Код:
new CarSpawns[145][eCars] = {
This problem means that you dont have the right number in the array(145 on my example). Make sure its the right number. If you have 3lines, then you need to put 3.

FALSE
pawn Код:
new CarSpawns[2][eCars] = {
    {471,1995.2136,-1089.8727,24.1279,140.3409},//carid 188 //Newbies quad
    {471,1999.7130,-1089.7423,24.1197,126.6980},//Newbies quad
    {551,1694.7080,-1501.7454,13.1675,357.8150}//Another random vehicle
    };
FALSE
pawn Код:
new CarSpawns[4][eCars] = {
    {471,1995.2136,-1089.8727,24.1279,140.3409},//carid 188 //Newbies quad
    {471,1999.7130,-1089.7423,24.1197,126.6980},//Newbies quad
    {551,1694.7080,-1501.7454,13.1675,357.8150}//Another random vehicle
    };
CORRECT
pawn Код:
new CarSpawns[3][eCars] = {
    {471,1995.2136,-1089.8727,24.1279,140.3409},//carid 188 //Newbies quad
    {471,1999.7130,-1089.7423,24.1197,126.6980},//Newbies quad
    {551,1694.7080,-1501.7454,13.1675,357.8150}//Another random vehicle
    };
Reply
#5


did you think you misunderstood me, it is

Код:
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
};
Код:
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\DANGEROS.pwn(793) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

No we didn't, how is MAX_POINTS defined?
Reply
#7

#define MAX_POINTS wrong number
Reply
#8

#define MAX_POINTS 96

are you mean that
Reply
#9

Quote:
Originally Posted by BLACK-RIDER-1692
#define MAX_POINTS 96

are you mean that
I think it should be 97. Count the lines again and put the right number if its not 97.
Reply
#10

Try 95
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)