Random vehicle selling price
#1

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):

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}
};
But when i compile it, pawno crashes. What's wrong?
Reply


Messages In This Thread
Random vehicle selling price - by Face9000 - 04.02.2014, 20:15
Re: Random vehicle selling price - by Konstantinos - 04.02.2014, 20:20
Re: Random vehicle selling price - by Face9000 - 04.02.2014, 20:24
Re: Random vehicle selling price - by Vince - 04.02.2014, 20:42
Re: Random vehicle selling price - by Face9000 - 04.02.2014, 20:56
Re: Random vehicle selling price - by Borg - 04.02.2014, 21:02

Forum Jump:


Users browsing this thread: 2 Guest(s)