No vehicles loading +++ rep if helped
#1

When I start the server, in the console it says 0 vehicles are loaded and in game none are loaded yet I have made them in the script and no errors come up, why is this?
Reply
#2

Check for any error on logs.
Reply
#3

show us your OnGameModeInIt codes, and show us the server log.
Reply
#4

No errors..
Reply
#5

It shows this on Log:

Quote:

[21:18:28] [debug] Run time error 4: "Array index out of bounds"
[21:18:28] [debug] Accessing element at index 15 past array upper bound 14
[21:18:28] [debug] AMX backtrace:
[21:18:28] [debug] #0 000d69bc in ?? () from BBRP.amx
[21:18:28] [debug] #1 00104c74 in public SSCANF_OnGameModeInit () from BBRP.amx
[21:18:28] [debug] #2 native CallLocalFunction () [004743b0] from samp-server.exe
[21:18:28] [debug] #3 0000ff9c in public zcmd_OnGameModeInit () from BBRP.amx
[21:18:28] [debug] #4 native CallLocalFunction () [004743b0] from samp-server.exe
[21:18:28] [debug] #5 0000f8fc in ?? () from BBRP.amx
[21:18:28] [debug] #6 000090ac in public Itter_OnGameModeInit () from BBRP.amx
[21:18:28] [debug] #7 native CallLocalFunction () [004743b0] from samp-server.exe
[21:18:28] [debug] #8 000026d4 in ?? () from BBRP.amx
[21:18:28] [debug] #9 000015a4 in public OnGameModeInit () from BBRP.amx
[21:18:28]
[21:18:28] -------------------------------------------
[21:18:28] Loading...
[21:18:28] Badlands Roleplay
[21:18:28] -------------------------------------------
[21:18:28]
[21:18:28] Number of vehicle models: 0

And before it broke, it never showed that
Reply
#6

:/ :O Cant understand
Reply
#7

Any 1
Reply
#8

Um, Where did you put the "CreateVehicle"'s in? Can you show me the place you put them in? If in "OnGameModeInit" Show me the callback.
Reply
#9

Below
Reply
#10

For my Constable faction - LSPD, I have it under OnGameModeInit

Код:
	//CONSTABLE Main Station Vehicles
	LSPDVehicles[0] = AddStaticVehicleEx(596, 1602.5122, -1680.3663, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[1] = AddStaticVehicleEx(596, 1602.4829, -1684.0609, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[2] = AddStaticVehicleEx(596, 1602.5535, -1688.0438, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[3] = AddStaticVehicleEx(596, 1602.6227, -1692.1034, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[4] = AddStaticVehicleEx(596, 1602.4873, -1696.2058, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[5] = AddStaticVehicleEx(596, 1602.5120, -1700.2861, 5.4630, 90.1200, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[6] = AddStaticVehicleEx(596, 1595.6655, -1711.2139, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[7] = AddStaticVehicleEx(596, 1602.4758, -1704.3666, 5.4630, 90.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[8] = AddStaticVehicleEx(596, 1591.5563, -1711.1929, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[9] = AddStaticVehicleEx(596, 1587.1567, -1711.0308, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[10] = AddStaticVehicleEx(596, 1583.3690, -1710.9269, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[11] = AddStaticVehicleEx(596, 1578.6202, -1711.0103, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[12] = AddStaticVehicleEx(598, 1574.6007, -1711.0599, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[13] = AddStaticVehicleEx(598, 1570.4407, -1711.0914, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[14] = AddStaticVehicleEx(598, 1566.0377, -1711.0865, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[15] = AddStaticVehicleEx(598, 1562.2946, -1711.3041, 5.4630, 0.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[16] = AddStaticVehicleEx(490, 1558.7334, -1711.2596, 5.7731, 0.0000, 1, 1, FACTION_RESPAWN);
	LSPDVehicles[17] = AddStaticVehicleEx(599, 1529.7250, -1688.2800, 5.8980, 270.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[18] = AddStaticVehicleEx(599, 1529.6984, -1683.8052, 5.8980, 270.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[19] = AddStaticVehicleEx(426, 1526.2618, -1644.7566, 5.4943, 180.0000, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[20] = AddStaticVehicleEx(426, 1530.6189, -1644.6954, 5.4943, 180.0000, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[21] = AddStaticVehicleEx(421, 1534.6064, -1644.5483, 5.4943, 180.0000, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[22] = AddStaticVehicleEx(421, 1538.6061, -1644.7013, 5.4943, 180.0000, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[23] = AddStaticVehicleEx(523, 1583.5237, -1680.4950, 5.3747, -60.8400, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[24] = AddStaticVehicleEx(523, 1583.4276, -1677.8779, 5.3747, -60.8400, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[26] = AddStaticVehicleEx(541, 1584.3937, -1671.6608, 5.6028, -89.6400, 0, 0, FACTION_RESPAWN); // Bullet
	LSPDVehicles[27] = AddStaticVehicleEx(402, 1584.2158, -1667.7837, 5.6028, -89.6400, 0, 0, FACTION_RESPAWN); // Buffalo
	LSPDVehicles[28] = AddStaticVehicleEx(528, 1543.8656, -1663.6150, 6.4303, 90.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[29] = AddStaticVehicleEx(528, 1543.6633, -1672.0131, 6.4303, 90.0000, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[30] = AddStaticVehicleEx(427, 1543.5990, -1681.3265, 6.4303, 180.5453, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[31] = AddStaticVehicleEx(498, 1544.2075, -1656.0011, 6.1636, 91.7610, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[32] = AddStaticVehicleEx(596, 277.7009, -1535.2793, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[33] = AddStaticVehicleEx(497, 1569.6190, -1643.7563, 28.6585, 90.2414, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[34] = AddStaticVehicleEx(497, 1569.8668, -1657.8403, 28.6585, 90.2414, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[54] = AddStaticVehicleEx(560,1558.5527,-1693.5159,5.6002,180.4668,0,0, FACTION_RESPAWN); // 
	LSPDVehicles[25] = AddStaticVehicleEx(560,1562.7063,-1693.5046,5.5956,181.0911,0,0, FACTION_RESPAWN); // 

	//CONSTABLE Administration/HQ Vehicles
	LSPDVehicles[35] = AddStaticVehicleEx(596, 281.5859, -1529.8413, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[36] = AddStaticVehicleEx(596, 283.7789, -1526.5203, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[37] = AddStaticVehicleEx(596, 291.3855, -1545.0673, 24.3619, 414.9714, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[38] = AddStaticVehicleEx(596, 294.0503, -1541.0963, 24.3619, 414.9714, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[39] = AddStaticVehicleEx(598, 289.7881, -1517.6244, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[40] = AddStaticVehicleEx(598, 292.9276, -1512.9407, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[41] = AddStaticVehicleEx(598, 286.7833, -1521.8969, 24.3619, 235.9314, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[42] = AddStaticVehicleEx(599, 296.6205, -1508.3108, 24.5123, 234.6368, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[43] = AddStaticVehicleEx(599, 299.1129, -1504.3203, 24.5123, 235.5737, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[44] = AddStaticVehicleEx(490, 301.4958, -1501.0891, 24.5054, -125.3400, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[45] = AddStaticVehicleEx(490, 303.9569, -1497.7603, 24.4854, -125.3400, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[46] = AddStaticVehicleEx(426, 298.3811, -1490.6996, 24.6063, -123.3600, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[47] = AddStaticVehicleEx(426, 301.3723, -1487.1704, 24.6063, -123.3600, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[48] = AddStaticVehicleEx(426, 304.7082, -1482.4991, 24.6063, -123.3600, -1, -1, FACTION_RESPAWN);
	LSPDVehicles[51] = AddStaticVehicleEx(523, 272.7154, -1532.5793, 24.6602, -123.2400, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[52] = AddStaticVehicleEx(523, 274.4780, -1530.5676, 24.6602, -123.2400, 0, 1, FACTION_RESPAWN);
	LSPDVehicles[53] = AddStaticVehicleEx(601, 1544.5815, -1667.8574, 5.6494, 91.6244, 1, 1, FACTION_RESPAWN); // CONSTABLESWATTANK
	
	for(new x;x<sizeof(LSPDVehicles);x++)
	{
	    format(string, sizeof(string), "XMT %d", LSPDVehicles[x]);
	    SetVehicleNumberPlate(LSPDVehicles[x], string);
	    SetVehicleToRespawn(LSPDVehicles[x]);
		Vehicle_Armor(LSPDVehicles[x]);

	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)