04.02.2014, 20:15
I just setup a custom vehicle selling system, but since i listed all the vehicles, i wanna randomize the selling price too, so i did in this way:
(I'll not post all the vehicles list, just a small part so you can understand what im asking):
But when i compile it, pawno crashes. What's wrong?
(I'll not post all the vehicles list, just a small part so you can understand what im asking):
pawn Код:
new RandomVehiclePrice = random(35000-7500+1200+500+6000-1300+25000-12000);
new ListVehicles[212][VehiclesInfo] =
{
{"Landstalker",RandomVehiclePrice},
{"Bravura",RandomVehiclePrice},
{"Buffalo",RandomVehiclePrice},
{"Linerunner",RandomVehiclePrice},
{"Perrenial",RandomVehiclePrice},
{"Sentinel",RandomVehiclePrice},
{"Dumper",RandomVehiclePrice},
{"Firetruck",RandomVehiclePrice},
{"Trashmaster",RandomVehiclePrice},
{"Stretch",RandomVehiclePrice},
{"Manana",RandomVehiclePrice},
{"Infernus",RandomVehiclePrice}
};