#1

yo, when i compile my file i get this error:

Quote:

C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20044) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20045) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20046) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20047) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(2004 : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20049) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20050) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20051) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20052) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20053) : error 032: array index out of bounds (variable "FDSAVehicles")
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20054) : error 032: array index out of bounds (variable "FDSAVehicles")

line 20001 - 20057:

Код:
	{
		format(string, sizeof(string), "XMT %d", LSPDVehicles[x]);
		SetVehicleNumberPlate(LSPDVehicles[x], string);
		SetVehicleToRespawn(LSPDVehicles[x]);
	}

	FDSAVehicles[1] = AddStaticVehicleEx(452,721.1721,-1628.0261,-0.6700,180.6752,1,53, VEHICLE_RESPAWN); // LSFD Boat 2
	FDSAVehicles[2] = AddStaticVehicleEx(452,720.1046,-1693.4014,-0.4581,179.7505,1,35, VEHICLE_RESPAWN); // LSFD Boat 3
	FDSAVehicles[3] = AddStaticVehicleEx(416,1607.2472,-2153.6628,13.7036,88.4947,1,3, VEHICLE_RESPAWN); // FDA Ambulance
	FDSAVehicles[4] = AddStaticVehicleEx(416,1590.8926,-2152.0854,13.7039,268.5291,1,3, VEHICLE_RESPAWN); // fdsa ambulance
	FDSAVehicles[5] = AddStaticVehicleEx(416,1590.9957,-2159.7983,13.7047,269.8668,1,3, VEHICLE_RESPAWN); // fdsa ambulance
	FDSAVehicles[6] = AddStaticVehicleEx(416,1591.0316,-2167.6848,13.7039,269.8569,1,3, VEHICLE_RESPAWN); // fdsa ambulance
	FDSAVehicles[7] = AddStaticVehicleEx(407, 1544.7987060547, -2173.884765625, 13.916874885559, 270, -1, -1, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[8] = AddStaticVehicleEx(407, 1544.7987060547, -2165.47265625, 13.916874885559, 270, -1, -1, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[9] = AddStaticVehicleEx(544, 1513.0217285156, -2173.1804199219, 13.916874885559, 90, -1, -1, VEHICLE_RESPAWN);//Ambulance
	FDSAVehicles[10] = AddStaticVehicleEx(416, 87.18, -160.59, 2.74, 357.75, 1, 3, VEHICLE_RESPAWN);//Ambulance - FDSA Sub Station
	FDSAVehicles[11] = AddStaticVehicleEx(490, 97.63, -171.87, 2.75, 271.18, 3, 1, VEHICLE_RESPAWN); // FDSA Rancher - Sub Station
	FDSAVehicles[12] = AddStaticVehicleEx(407, 95.26, -164.77, 2.82, 269.32, 3, 1, VEHICLE_RESPAWN); // Fire Truck - Sub Station
	FDSAVehicles[13] = AddStaticVehicleEx(563, 152.42, -167.52, 2.28, 92.43, 3, 1, VEHICLE_RESPAWN); // Raindance - Sub Station
	FDSAVehicles[14] = AddStaticVehicleEx(416,1220.61, 301.97, 19.70, 155.82,1,3, VEHICLE_RESPAWN); // Memorial - Ambulance
	FDSAVehicles[15] = AddStaticVehicleEx(416,1227.83, 298.53, 19.70, 155.16,1,3, VEHICLE_RESPAWN); // Memorial - Ambulance
	FDSAVehicles[16] = AddStaticVehicleEx(563,1230.78, 318.34, 25.46, 153.57,1,3, VEHICLE_RESPAWN); // Memorial - Raindance
	FDSAVehicles[17] = AddStaticVehicleEx(416,1609.2712,-2181.0779,13.7039,177.3877,1,3, VEHICLE_RESPAWN); // LSFD Ambulance
	FDSAVehicles[18] = AddStaticVehicleEx(554,1580.2485,-2147.9507,13.6308,270.7723,3,1, VEHICLE_RESPAWN); // LSFD Car
	FDSAVehicles[19] = AddStaticVehicleEx(554,1545.3405,-2183.1868,13.6328,269.7860,3,1, VEHICLE_RESPAWN); // LSFD Car 2
	FDSAVehicles[20] = AddStaticVehicleEx(416,1179.9149,-1308.8851,13.8767,268.7781,1,3, VEHICLE_RESPAWN); //Ambulance 1
	FDSAVehicles[21] = AddStaticVehicleEx(416,1179.3976,-1338.5197,13.9653,270.0616,1,3, VEHICLE_RESPAWN); //Ambulance 2
	FDSAVehicles[22] = AddStaticVehicleEx(416,2036.9012,-1425.9266,17.1406,359.5312,1,3, VEHICLE_RESPAWN); //Ambulance 3
	FDSAVehicles[23] = AddStaticVehicleEx(416,2008.3009,-1411.0936,17.1413,88.3472,1,3, VEHICLE_RESPAWN); //Ambulance 4
	FDSAVehicles[24] = AddStaticVehicleEx(407,1545.6364,-2155.6382,13.7988,273.9738,3,1, VEHICLE_RESPAWN); //Ambulance 5
	FDSAVehicles[25] = AddStaticVehicleEx(407,1516.0275,-2162.9231,13.7834,89.9683,3,1, VEHICLE_RESPAWN); //Ambulance 6
	FDSAVehicles[26] = AddStaticVehicleEx(416,1606.9974,-2167.0830,13.7039,91.1709,1,3, VEHICLE_RESPAWN); //Ambulance 7
	FDSAVehicles[27] = AddStaticVehicleEx(416,1607.3264,-2148.6665,13.7040,89.7026,1,3, VEHICLE_RESPAWN); //Ambulance 8
	FDSAVehicles[28] = AddStaticVehicleEx(490,1616.3599,-2144.3535,13.6824,88.7370,3,1, VEHICLE_RESPAWN); // FDSAFBIRANCHER main station
	FDSAVehicles[29] = AddStaticVehicleEx(490,1628.9847,-2151.2844,13.6831,269.9678,3,1, VEHICLE_RESPAWN); // FDSAFBIRANCHER sub station new
	FDSAVehicles[30] = AddStaticVehicleEx(416,-2668.79589844,605.40057373,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[31] = AddStaticVehicleEx(416,-2662.53906250,605.74005127,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[32] = AddStaticVehicleEx(416,-2655.28808594,605.89562988,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[33] = AddStaticVehicleEx(407,-2021.93737793,84.03466797,28.25847435,270.00000000,3,1,VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[34] = AddStaticVehicleEx(407,-2022.07055664,92.80475616,28.41874695,270.00000000,3,1,VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[35] = AddStaticVehicleEx(407,-2022.19433594,76.03833008,28.25847435,270.00000000,3,11,VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[36] = AddStaticVehicleEx(563,1633.9830,-2180.9321,14.2601,267.5514,3,1,VEHICLE_RESPAWN); // fda raindance
	FDSAVehicles[37] = AddStaticVehicleEx(563,1489.1141,-2168.0686,14.2523,180.3227,3,1,VEHICLE_RESPAWN); // raindance 2
	FDSAVehicles[38] = AddStaticVehicleEx(407,1792.9956000,-1788.5883000,13.7113000,0.0000000,-1,-1,15, VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[39] = AddStaticVehicleEx(407,1785.0001000,-1788.7877000,13.7113000,0.0000000,-1,-1,15, VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[40] = AddStaticVehicleEx(407,1775.9347000,-1788.8264000,13.7113000,0.0000000,-1,-1,15, VEHICLE_RESPAWN); //Firetruck
	FDSAVehicles[41] = AddStaticVehicleEx(416,1733.4781000,-1788.6254000,13.4717000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[42] = AddStaticVehicleEx(416,1733.0951000,-1782.6179000,13.4717000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[43] = AddStaticVehicleEx(416,1740.1825000,-1763.0327000,13.4717000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[44] = AddStaticVehicleEx(416,1740.2463000,-1758.3214000,13.4717000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[45] = AddStaticVehicleEx(416,1740.1716000,-1753.3552000,13.4717000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Ambulance
	FDSAVehicles[46] = AddStaticVehicleEx(490,1732.6940000,-1771.3724000,13.2399000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //FBI Rancher
	FDSAVehicles[47] = AddStaticVehicleEx(490,1732.7142000,-1768.1173000,13.2399000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //FBI Rancher
	FDSAVehicles[48] = AddStaticVehicleEx(563,1784.0256000,-1803.5900000,31.5923000,-90.0000000,-1,-1,15, VEHICLE_RESPAWN); //Raindance

	for(new x;x<sizeof(FDSAVehicles);x++)
	{
How can i fix it?
Reply
#2

where you create the variable LSPDVehicles, if you have 48 veh your var should be 49?
Reply
#3

Ok this is what you need to do you need to do CTRL+F and search: (((( FDSAVehicles[ )))) just like that nothing else and it will come up FDSAVehicles[20] or something like that. You need to change what ever the number in the barckets is to 50

+REP me thanks
Reply
#4

Quote:
Originally Posted by NewCityRoleplay
Посмотреть сообщение
Ok this is what you need to do you need to do CTRL+F and search: (((( FDSAVehicles[ )))) just like that nothing else and it will come up FDSAVehicles[20] or something like that. You need to change what ever the number in the barckets is to 50

+REP me thanks
Thank you but now i get this:
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20044) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20045) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20046) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20047) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(2004 : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20049) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20050) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20051) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20052) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20053) : warning 202: number of arguments does not match definition
C:\Users\Dream\Desktop\pawno\DSRPPAULO4.pwn(20054) : warning 202: number of arguments does not match definition
Reply
#5

Hmm i do not know, this hasnt happened me before but i done what i told you when this happened me and it worked perfect im sorry i cannot help you with all the warnings do
Reply
#6

what are the lines 20044 - 20054 ?
Reply
#7

Quote:
Originally Posted by [ISS]jumbo
Посмотреть сообщение
what are the lines 20044 - 20054 ?
FDSAVehicles[22] = AddStaticVehicleEx(416,2036.9012,-1425.9266,17.1406,359.5312,1,3, VEHICLE_RESPAWN); //Ambulance 3
FDSAVehicles[23] = AddStaticVehicleEx(416,2008.3009,-1411.0936,17.1413,88.3472,1,3, VEHICLE_RESPAWN); //Ambulance 4
FDSAVehicles[24] = AddStaticVehicleEx(407,1545.6364,-2155.6382,13.7988,273.9738,3,1, VEHICLE_RESPAWN); //Ambulance 5
FDSAVehicles[25] = AddStaticVehicleEx(407,1516.0275,-2162.9231,13.7834,89.9683,3,1, VEHICLE_RESPAWN); //Ambulance 6
FDSAVehicles[26] = AddStaticVehicleEx(416,1606.9974,-2167.0830,13.7039,91.1709,1,3, VEHICLE_RESPAWN); //Ambulance 7
FDSAVehicles[27] = AddStaticVehicleEx(416,1607.3264,-2148.6665,13.7040,89.7026,1,3, VEHICLE_RESPAWN); //Ambulance 8
FDSAVehicles[28] = AddStaticVehicleEx(490,1616.3599,-2144.3535,13.6824,88.7370,3,1, VEHICLE_RESPAWN); // FDSAFBIRANCHER main station
FDSAVehicles[29] = AddStaticVehicleEx(490,1628.9847,-2151.2844,13.6831,269.9678,3,1, VEHICLE_RESPAWN); // FDSAFBIRANCHER sub station new
FDSAVehicles[30] = AddStaticVehicleEx(416,-2668.79589844,605.40057373,14.75412750,180.0000000 0,1,3,VEHICLE_RESPAWN); //Ambulance
FDSAVehicles[31] = AddStaticVehicleEx(416,-2662.53906250,605.74005127,14.75412750,180.0000000 0,1,3,VEHICLE_RESPAWN); //Ambulance
FDSAVehicles[32] = AddStaticVehicleEx(416,-2655.28808594,605.89562988,14.75412750,180.0000000 0,1,3,VEHICLE_RESPAWN); //Ambulance
FDSAVehicles[33] = AddStaticVehicleEx(407,-2021.93737793,84.03466797,28.25847435,270.00000000 ,3,1,VEHICLE_RESPAWN); //Firetruck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)