SA-MP Forums Archive
What do theese errors mean - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: What do theese errors mean (/showthread.php?tid=495267)



What do theese errors mean - Zin - 16.02.2014

I cant make sense of theese errors i see nothing wrong with them.

Код:
// NOOSE Vehicles
	NooseVehicles[0] = AddStaticVehicleEx(601,-699.75585938,2435.35839844,10023.44628906,354.99572754,-1,-1,VEHICLE_RESPAWN); //S.W.A.T. Van
	NooseVehicles[1] = AddStaticVehicleEx(528,-703.84082031,2436.36425781,10023.86035156,355.99548340,-1,-1,VEHICLE_RESPAWN); //FBI Truck
	NooseVehicles[2] = AddStaticVehicleEx(528,-707.91601562,2436.53027344,10023.82128906,355.99548340,-1,-1,VEHICLE_RESPAWN); //FBI Truck
	NooseVehicles[3] = AddStaticVehicleEx(490,-715.20166016,2476.36181641,10023.66015625,263.99548340,-1,3,VEHICLE_RESPAWN); //FBI Rancher
	NooseVehicles[4] = AddStaticVehicleEx(490,-715.50097656,2472.61816406,10023.74804688,264.24548340,-1,3,VEHICLE_RESPAWN); //FBI Rancher
	NooseVehicles[5] = AddStaticVehicleEx(601,-739.96258545,2487.63867188,10023.72558594,356.74304199,-1,-1,VEHICLE_RESPAWN); //S.W.A.T. Van
	NooseVehicles[6] = AddStaticVehicleEx(427,-715.15979004,2464.22705078,10023.83789062,265.24597168,-1,3,VEHICLE_RESPAWN); //Enforcer
	NooseVehicles[7] = AddStaticVehicleEx(427,-714.76257324,2468.37597656,10023.83398438,263.99597168,-1,3,VEHICLE_RESPAWN); //Enforcer
	NooseVehicles[8] = AddStaticVehicleEx(598,-717.51629639,2451.20068359,10023.40917969,264.49060059,-1,3,VEHICLE_RESPAWN); //Police Car (LVPD)
	NooseVehicles[9] = AddStaticVehicleEx(599,-698.65820312,2478.99023438,10023.98437500,87.24792480,-1,3,VEHICLE_RESPAWN); //Police Ranger
	NooseVehicles[10] = AddStaticVehicleEx(599,-699.42065430,2474.92456055,10023.79882812,84.24987793,-1,3,VEHICLE_RESPAWN); //Police Ranger
	NooseVehicles[11] = AddStaticVehicleEx(528,-711.62402344,2437.08300781,10023.82128906,355.99548340,-1,-1,VEHICLE_RESPAWN); //FBI Truck
	NooseVehicles[12] = AddStaticVehicleEx(598,-717.18981934,2455.31445312,10023.40917969,264.49035645,-1,3,VEHICLE_RESPAWN); //Police Car (LVPD)
	NooseVehicles[13] = AddStaticVehicleEx(598,-716.70678711,2460.12231445,10023.40917969,264.99035645,-1,3,VEHICLE_RESPAWN); //Police Car (LVPD)
	NooseVehicles[14] = AddStaticVehicleEx(598,-717.73339844,2447.83007812,10023.40917969,264.49035645,-1,3,VEHICLE_RESPAWN); //Police Car (LVPD)
	NooseVehicles[15] = AddStaticVehicleEx(447,-734.23010254,-1879.06152344,6.30866909,287.98510742,-1,-1,VEHICLE_RESPAWN); //Seasparrow
	NooseVehicles[16] = AddStaticVehicleEx(447,-722.06250000,-1875.64843750,6.33958197,286.99035645,-1,-1,VEHICLE_RESPAWN); //Seasparrow
	NooseVehicles[17] = AddStaticVehicleEx(447,-709.52056885,-1879.73730469,6.25867319,261.47460938,-1,-1,VEHICLE_RESPAWN); //Seasparrow
	NooseVehicles[18] = AddStaticVehicleEx(497,-743.41693115,-1848.83911133,13.50929165,107.99804688,-1,3,VEHICLE_RESPAWN); //Police Maverick
	NooseVehicles[19] = AddStaticVehicleEx(497,-713.28552246,-1846.35949707,13.90929317,259.99804688,-1,3,VEHICLE_RESPAWN); //Police Maverick
	NooseVehicles[20] = AddStaticVehicleEx(432,-749.2000100,-2049.1999500,6.8000000,330.0000000,95,10,15,VEHICLE_RESPAWN); //Rhino
	NooseVehicles[21] = AddStaticVehicleEx(432,-744.4000200,-2052.0000000,6.8000000,329.9960000,95,10,15,VEHICLE_RESPAWN); //Rhino
	NooseVehicles[22] = AddStaticVehicleEx(432,-738.0000000,-2051.8000500,6.8000000,329.9960000,95,10,15,VEHICLE_RESPAWN); //Rhino
	NooseVehicles[23] = AddStaticVehicleEx(433,-726.5999800,-2035.0000000,7.3000000,44.0000000,95,10,15,VEHICLE_RESPAWN); //Barracks
	NooseVehicles[24] = AddStaticVehicleEx(433,-725.7000100,-2030.0999800,7.3000000,43.9950000,95,10,15,VEHICLE_RESPAWN); //Barracks
	NooseVehicles[25] = AddStaticVehicleEx(433,-725.0000000,-2024.3000500,7.3000000,43.9950000,95,10,15,VEHICLE_RESPAWN); //Barracks
	NooseVehicles[26] = AddStaticVehicleEx(425,-736.4000200,-2006.3000500,7.5000000,55.9970000,95,10,15,VEHICLE_RESPAWN); //Hunter
	NooseVehicles[27] = AddStaticVehicleEx(425,-745.0000000,-1991.8000500,7.5000000,56.0000000,95,10,15,VEHICLE_RESPAWN); //Hunter
	NooseVehicles[28] = AddStaticVehicleEx(520,-742.4000200,-1972.8000500,7.6000000,77.9970000,-1,-1,15,VEHICLE_RESPAWN); //Hydra
	NooseVehicles[29] = AddStaticVehicleEx(520,-733.2000100,-1941.0999800,7.6000000,78.0000000,-1,-1,15,VEHICLE_RESPAWN); //Hydra
	NooseVehicles[30] = AddStaticVehicleEx(476,-758.4000200,-2034.6999500,7.9000000,313.9950000,167,-1,15,VEHICLE_RESPAWN); //Rustler
	NooseVehicles[31] = AddStaticVehicleEx(476,-781.7999900,-2010.5000000,7.9000000,314.0000000,167,-1,15,VEHICLE_RESPAWN); //Rustler
ERRORS

Код:
C:\Users\Jackie\Desktop\VGRP(2).pwn(18493) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18494) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18495) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18496) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18497) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18498) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18499) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18500) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18501) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18502) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18503) : error 032: array index out of bounds (variable "NooseVehicles")
C:\Users\Zin\Desktop\SLRP(2).pwn(18504) : error 032: array index out of bounds (variable "NooseVehicles")



Re: What do theese errors mean - Boss201 - 16.02.2014

wrong section post it in scripting and help section


Re: What do theese errors mean - Zin - 16.02.2014

ok sorry but it posted now so you may aswell answer the question


Re: What do theese errors mean - Sledgehammer - 16.02.2014

Just find 'NooseVehicles' then expand the variable.

I.e NooseVehicles[20];

make it NooseVehicles[50];

Rep+ if i helped?


Re: What do theese errors mean - Zin - 16.02.2014

I set this to 31

new NooseVehicles[31];

Still getting same errors


Re: What do theese errors mean - Sledgehammer - 16.02.2014

Change this:
pawn Код:
new NooseVehicles[31];
to
pawn Код:
new NooseVehicles[45];
This should remove your error's.

45 = 45 vehicles.. Since the variable is 31, it only can hold 31 vehicles.. Therefore the next lot off vehicles won't get defined. Then you shall get your errors.