multi-dimensional arrays >?
#1

line 85
pawn Code:
};
pawn Code:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(885) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Code:
new Float:gRandomPlayerSpawns[115][4] = { // [116] is the number of spawns, [4] is the amount of info, in this case, x, y and z.
{1751.1097,-2106.4529,13.5469,183.1979}, //1 El-Corona - Outside random house
{2652.6418,-1989.9175,13.9988,182.7107}, //2 Random house in willowfield - near playa de seville and stadium
{2489.5225,-1957.9258,13.5881,2.3440}, //3 Hotel in willowfield - near cluckin bell
{2689.5203,-1695.9354,10.0517,39.5312}, //4 Outside stadium - lots of cars
{2770.5393,-1628.3069,12.1775,4.9637}, //5 South in east beach - north of stadium - carparks nearby
{2807.9282,-1176.8883,25.3805,173.6018}, //6 North in east beach - near apartments
{2552.5417,-958.0850,82.6345,280.2542}, //7 Random house north of Las Colinas
{2232.1309,-1159.5679,25.8906,103.2939}, //8 Jefferson motel
{2388.1003,-1279.8933,25.1291,94.3321}, //9 House south of pig pen
{2481.1885,-1536.7186,24.1467,273.4944}, //10 East LS - near clucking bell and car wash
{2495.0720,-1687.5278,13.5150,359.6696}, //11 Outside CJ's house - lots of cars nearby
{2306.8252,-1675.4340,13.9221,2.6271}, //12 House in ganton - lots of cars nearby
{2191.8403,-1455.8251,25.5391,267.9925}, //13 House in south jefferson - lots of cars nearby
{1830.1359,-1092.1849,23.8656,94.0113}, //14 Mulholland intersection carpark
{2015.3630,-1717.2535,13.5547,93.3655}, //15 Idlewood house
{1654.7091,-1656.8516,22.5156,177.9729}, //16 Right next to PD
{1219.0851,-1812.8058,16.5938,190.0045}, //17 Conference Center
{1508.6849,-1059.0846,25.0625,1.8058}, //18 Across the street of BANK - lots of cars in intersection carpark
{1421.0819,-885.3383,50.6531,3.6516}, //19 Outside house in vinewood
{1133.8237,-1272.1558,13.5469,192.4113}, //20 Near hospital
{1235.2196,-1608.6111,13.5469,181.2655}, //21 Backalley west of mainstreet
{590.4648,-1252.2269,18.2116,25.0473}, //22 Outside "BAnk of San Andreas"
{842.5260,-1007.7679,28.4185,213.9953}, //23 North of Graveyard
{911.9332,-1232.6490,16.9766,5.2999}, //24 LS Film Studio
{477.6021,-1496.6207,20.4345,266.9252}, //25 Rodeo Place
{255.4621,-1366.3256,53.1094,312.0852}, //26 Outside propery in richman
{281.5446,-1261.4562,73.9319,305.0017}, //27 Another richman property
{790.1918,-839.8533,60.6328,191.9514}, //28 Mulholland house
{1299.1859,-801.4249,84.1406,269.5274}, //29 Maddoggs
{1240.3170,-2036.6886,59.9575,276.4659}, //30 Verdant Bluffs
{2215.5181,-2627.8174,13.5469,273.7786}, //31 Ocean docks 1
{2509.4346,-2637.6543,13.6453,358.3565}, //32 Ocean Docks spawn 2
{1435.8024,2662.3647,11.3926,1.1650}, //33 las Venturas  Northern train station
{1457.4762,2773.4868,10.8203,272.2754}, //34  Northern golf club
{1739.6390,2803.0569,14.2735,285.3929}, //35  Northern housing estate 1
{1870.3096,2785.2471,14.2734,42.3102}, //36  Northern housing estate 2
{1959.7142,2754.6863,10.8203,181.4731}, //37  Northern house 1
{2314.2556,2759.4504,10.8203,93.2711}, //38  Northern industrial estate 1
{2216.5674,2715.0334,10.8130,267.6540}, //39  Northern industrial estate 2
{2101.4192,2678.7874,10.8130,92.0607}, //40  Northern near railway line
{1951.1090,2660.3877,10.8203,180.8461}, //41  Northern house 2
{1666.6949,2604.9861,10.8203,179.8495}, //42  Northern house 3
{2808.3367,2421.5107,11.0625,136.2060}, //43  Northern shopping centre
{2633.3203,2349.7061,10.6719,178.7175}, //44  V-Rock
{2606.6348,2161.7490,10.8203,88.7508}, //45  South V-Rock
{2616.5286,2100.6226,10.8158,177.7834}, //46  North Ammunation 1
{2491.8816,2397.9370,10.8203,266.6003}, //47  North carpark 1
{2531.7891,2530.3223,21.8750,91.6686}, //48  North carpark 2
{2340.6677,2530.4324,10.8203,177.8630}, //49  North Pizza Stack
{2097.6855,2491.3313,14.8390,181.8117}, //50  Emerald Isle
{1893.1000,2423.2412,11.1782,269.4385}, //51  Souvenir shop
{1698.9330,2241.8320,10.8203,357.8584}, //52  Northern casino
{1479.4559,2249.0769,11.0234,306.3790}, //53  Baseball stadium 1
{1298.1548,2083.4016,10.8127,256.7034}, //54  Baseball stadium 2
{1117.8785,2304.1514,10.8203,81.5490}, //55  North carparks
{1108.9878,1705.8639,10.8203,0.6785}, //56  Dirtring racing 1
{1423.9780,1034.4188,10.8203,90.9590}, //57  Sumo
{1537.4377,752.0641,11.0234,271.6893}, //58  Church
{1917.9590,702.6984,11.1328,359.2682}, //59  Southern housing estate
{2089.4785,658.0414,11.2707,357.3572}, //60  Southern house 1
{2489.8286,928.3251,10.8280,67.2245}, //61  Wedding chapel
{2697.4717,856.4916,9.8360,267.0983}, //62  Southern construction site
{2845.6104,1288.1444,11.3906,3.6506}, //63  Southern train station
{2437.9370,1293.1442,10.8203,86.3830}, //64  Wedding chapel (near Pyramid)
{2299.5430,1451.4177,10.8203,269.1287}, //65  Carpark (near Pyramid)
{2214.3008,2041.9165,10.8203,268.7626}, //66 Central parking lot
{2005.9174,2152.0835,10.8203,270.1372}, //67  Central motel
{2222.1042,1837.4220,10.8203,88.6461}, //68  Clowns Pocket
{2025.6753,1916.4363,12.3382,272.5852}, //69  The Visage
{2087.9902,1516.5336,10.8203,48.9300}, //70  Royal Casino
{2172.1624,1398.7496,11.0625,91.3783}, //71  Auto Bahn
{2139.1841,987.7975,10.8203,0.2315}, //72  Come-a-lot
{1860.9672,1030.2910,10.8203,271.6988}, //73  Behind 4 Dragons
{1673.2345,1316.1067,10.8203,177.7294}, //74  Airport carpark
{1412.6187,2000.0596,14.7396,271.3568}, //75  South baseball stadium houses
{-2723.4639,-314.8138,7.1839,43.5562},  //76 golf course spawn
{-2694.5344,64.5550,4.3359,95.0190},  //77 in front of a house
{-2458.2000,134.5419,35.1719,303.9446},  //78 hotel
{-2796.6589,219.5733,7.1875,88.8288},  //89 house
{-2706.5261,397.7129,4.3672,179.8611},  //90 park
{-2866.7683,691.9363,23.4989,286.3060},  //91 house
{-2764.9543,785.6434,52.7813,357.6817},  //92 donut shop
{-2660.9402,883.2115,79.7738,357.4440},  //93 house
{-2861.0796,1047.7109,33.6068,188.2750}, //94  parking lot
{-2629.2009,1383.1367,7.1833,179.7006},  //95 parking lot at the bridge
{-2079.6802,1430.0189,7.1016,177.6486},  //96 pier
{-1660.2294,1382.6698,9.8047,136.2952}, //97  pier 69
{-1674.1964,430.3246,7.1797,226.1357},  //98 gas station]
{-1954.9982,141.8080,27.1747,277.7342},  //99 train station
{-1956.1447,287.1091,35.4688,90.4465},  //100 car shop
{-1888.1117,615.7245,35.1719,128.4498},  //101 random
{-1922.5566,886.8939,35.3359,272.1293},  //102 random
{-1983.3458,1117.0645,53.1243,271.2390},  //103 church
{-2417.6458,970.1491,45.2969,269.3676},  //104 gas station
{-2108.0171,902.8030,76.5792,5.7139},  //105 house
{-2097.5664,658.0771,52.3672,270.4487},  //106 random
{-2263.6650,393.7423,34.7708,136.4152},  //107 random
{-2287.5027,149.1875,35.3125,266.3989},  //108 baseball parking lot
{-2039.3571,-97.7205,35.1641,7.4744},  //109 driving school
{-1867.5022,-141.9203,11.8984,22.4499},  //110 factory
{-1537.8992,116.0441,17.3226,120.8537},  //111 docks ship
{-1708.4763,7.0187,3.5489,319.3260},  //112 docks hangar
{-1427.0858,-288.9430,14.1484,137.0812},  //113 airport
{-2173.0654,-392.7444,35.3359,237.0159},  //114 stadium
{-2320.5286,-180.3870,35.3135,179.6980},  //115 burger shot
{-2930.0049,487.2518,4.9141,3.8258}  //116 harbor
};
Reply
#2

pawn Code:
new Float:gRandomPlayerSpawns[115][4]
to
pawn Code:
new Float:gRandomPlayerSpawns[106][4]
Reply
#3

actually it was

pawn Code:
new Float:gRandomPlayerSpawns[][4]
Reply
#4

actually it was:
78, 89?
Quote:
Originally Posted by Kar
View Post
pawn Code:
{-2458.2000,134.5419,35.1719,303.9446},  //78 hotel
{-2796.6589,219.5733,7.1875,88.8288},  //89 house
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)