Array help again. . .
#1

hi there, i have one more question for array
pawn Код:
enum BuyAbleVehicleInfo{
    Model,
    Name[32],
    Price

}
//Buyable vehicles
new buyablevehicles[][BuyAbleVehicleInfo] = {
    {400, "Landstalker", 15000},
    {401, "Bravura", 10000},
    {402, "Buffalo", 70000},
    {404, "Perenniel", 8000}
}
now how to do if someone want to buy vehicle with Model ID 402, how to get Price form Array that Model ID is 402?
Reply


Messages In This Thread
Array help again. . . - by CoaPsyFactor - 22.08.2010, 04:05
Re: Array help again. . . - by dax123 - 22.08.2010, 04:29

Forum Jump:


Users browsing this thread: 2 Guest(s)