Quote:
Originally Posted by тħeρяш
now that error is fixed, but i get a couple of new ones...
Quote:
C:\...\TheKillerzBeta.pwn(162) : error 046: unknown array size (variable "StaticVehicles")
C:\...\TheKillerzBeta.pwn(163) : error 046: unknown array size (variable "StaticVehicles")
C:\...\TheKillerzBeta.pwn(164) : error 046: unknown array size (variable "StaticVehicles")
C:\...TheKillerzBeta.pwn(1160) : error 033: array must be indexed (variable "StaticVehicles")
C:\...\TheKillerzBeta.pwn(1166) : error 033: array must be indexed (variable "StaticVehicles")
C:\...\TheKillerzBeta.pwn(1172) : error 033: array must be indexed (variable "StaticVehicles")
|
errors in this lines:
pawn Код:
StaticVehicles[0] = AddStaticVehicleEx(496, 1434.2659912109, -930.6689453125, 36.504253387451, 174.97918701172, 0, 1, 15); // vehicle1 CJ
StaticVehicles[1] = AddStaticVehicleEx(536, 1335.5477294922, -911.88061523438, 35.899898529053, 178.64910888672, 5, 0, 15); // vehicle1 Bala
StaticVehicles[2] = AddStaticVehicleEx(489, 1346.375, -998.220703125, 28.315937042236, 0.000000, -1, -1, 15); // vehicle1 Grove
if (Vehicle == StaticVehicles[0] && gTeam[playerid] != TEAM_CJ)
else if (Vehicle == StaticVehicles[1] && gTeam[playerid] != TEAM_BALLA)
else if (Vehicle == StaticVehicles[2] && gTeam[playerid] != TEAM_GROVE)
|
forget about the
Quote:
Originally Posted by Pandabeer1337
pawn Код:
new StaticVehicles[][0] = { {"CJ_V1"}, {"BALLA_V1"}, {"GROVE_V1"} }
|
and just do:
And increase when you add more vehicles.