03.06.2010, 15:26
now that error is fixed, but i get a couple of new ones...
errors in this lines:
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") |
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)