SA-MP Forums Archive
Array Must be Index - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Array Must be Index (/showthread.php?tid=603264)



Array Must be Index - theonethatownz - 20.03.2016

Error:

0.01.pwn(321) : error 033: array must be indexed (variable "Vehicle")

Line:

Код:
Vehicle[Vehicle][ID] = Vehicle[vid][ID];
End of Enum:

Код:
new Vehicle[MAX_VEHICLES][VehicleData];



Re: Array Must be Index - AdmBot - 20.03.2016

You shoul [Vehicle] with another variable ( i think this ia for vehicle id) , so use GetPlayerVehicleID


Re: Array Must be Index - introzen - 20.03.2016

Show us the rest of the code above and below
Код:
Vehicle[Vehicle][ID] = Vehicle[vid][ID];
Also show us the VehicleData enum.