10.09.2015, 20:29
I've tried looking around for how to do this, but I don't think that I can word it right..
I've got this array which contains 7 items.
I need a GetVehicleNameFromID function that uses this array. An example or explanation would be appreciated.
Thanks.
I've got this array which contains 7 items.
pawn Код:
enum VehicleListEnum {
VehModel,
VehName[64],
VehType,
VehWindows,
VehTrunk,
VehDoors,
VehPrice
}
new VehicleList[212][VehicleListEnum] = {
// {ID, NAME, TYPE, WINDOWS, TRUNK, DOORS, PRICE},
{400, "Landstalker", VEHICLE_TYPE_CAR, 4, 1, 4, 000000},
{401, "Bravura", VEHICLE_TYPE_CAR, 2, 1, 2, 000000},
{402, "Buffalo", VEHICLE_TYPE_CAR, 2, 1, 2, 000000},
{403, "Linerunner", VEHICLE_TYPE_TRUCK, 2, 0, 2, 000000},
{404, "Perenniel", VEHICLE_TYPE_CAR, 4, 1, 4, 000000},
}
Thanks.