How can I save how much a car coast
#1

Hello!
I have a problem with my car system.
I want to save and read how much a car coast in an enum.
I have done much things but nothing was right.
Here is my enum:
enum dtcKl
{ //CARSYS
//0 = 2 Rдder
{462,1200}, //Faggio
{581,200000}, //BF-400
{521,200000}, //FCR-900
{463,150000}, //Freeway
{461,200000}, //PCJ-600
{468,30000}, //Sanchez
{586,70000}, //Wayfarer
{522,400000}, //NRG-500
{471,80000}, //Quad
//1 = LS Studios (Mittel-Teuer)
{579,120000}, //Huntley
{507,89990}, //Elegant
{419,79990}, //Esperant
{526,91842}, //Fortune
{589,75208}, //Club
{413,78518}, //Pony
{440,41990}, //Rumpo
{602,90000}, //Alpha
{400,132000}, //Landstal
{405,90000}, //Sentinel
{445,40000}, //Admiral
{475,19000}, //Sabre
// 2 = LS Count & Schutz (Billige-Gang)
{467,13000}, //Oceanic
{536,27500}, //Blade
{534,14000}, //Remigton
{567,22000}, //Savanna
{535,27000}, //Slamvan
{412,17000}, //Voodo
{458,17500}, //Solair
{479,17500}, //Regina
{518,17000}, //Buccanee
{542,14000}, //Clover
{496,19000}, //Blistac
{439,10000}, //Stallion
//3 = SF WangCars (Mittel-Gemischt)
{550,27500}, //Sunrise
{540,17500}, //Vincent
{404,21000}, //Peren
{533,33100}, //Feltzer
{483,18000}, //Camper
{500,26700}, //Mesa
{508,19000}, //Journey
{545,39090}, //Hustler
{554,16000}, //Yosemite
{565,29000}, //Flash
{561,25000}, //Startum
{489,18500}, //Rancher
{543,21900}, //Sadler
{442,19500}, //Leichenwagen
{587,27900}, //Euros
{527,17100}, //Cadrona
//4 = SF Otto (Luxus-Renn Wagen)
{409,40000}, //Stretch
{562,30000}, //Elegy
{560,40000}, //Sultan
{429,35000}, //Banshee
{402,30000}, //Buffalo
{541,50000}, //Bullet
{415,47000}, //Cheetah
{411,50000}, //Infernus
{559,33000}, //Jester
{603,17000}, //Phцnix
{506,35000}, //Supergt
{451,45000}, //Turismo
{558,20000}, //Uranus
{477,39000}, //Zr350

{417,2200000}, //Leviathan
{469,700000}, //sparrow
{487,1120000}, //maverik
{563,1600000} //raindance

};
new dtcKaufliste[MAX_VEHICLES][dtcKl];


the fist number is the model of the car and the second is the money.

And this is how i want to get the price:
new vmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
preis = dtcKaufliste[vmodel];

How must I do it, that i get the price from the modelid?

Thanks for Answering!
Reply
#2

u want make dialog or.. ? :/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)