25.01.2012, 20:11
(
Последний раз редактировалось Richie; 25.01.2012 в 23:20.
)
I have changed the BuyableVehicles to include vehicleid and price now. And the vehicle selection is created, but problem is that it dosent switch to a valid vehicle model when i press < L or R >. Im using sscanf to check if its valid vehicle model. Here is the vehicle enum, i tried to make a loop to change to next vehiclemodel, but it failed ig.
Edit: This is solved. I added owID to the enum which i used to browse through the vehicles.
pawn Код:
#define MAX_BUYABLE_MODELS 111
enum _VehSale
{
ovModel,
ovPrice,
};
new BuyableVehicle[MAX_BUYABLE_MODELS][_VehSale] =
{
{400, 500000}, {402, 750000}, {403, 1000000}, {404, 95000}, {405, 350000}, {409, 1000000}, {411, 2500000}, {412, 450000}, {413, 300000}, {414, 300000},
{415, 1700000}, {419, 340000}, {420, 555000}, {421, 430000}, {422, 260000}, {423, 600000}, {424, 900000}, {426, 250000}, {428, 960000},{429, 2000000},
{431, 3000000}, {434, 2600000}, {437, 3000000}, {438, 650000}, {439, 456000}, {440, 405000}, {442, 650000}, {444, 5000000}, {445, 600000}, {451, 2200000},
{457, 250000}, {458, 450000}, {461, 605000}, {462, 150000}, {463, 460000}, {466, 350000}, {467, 250000}, {468, 350000}, {470, 1500000}, {471, 290000},
{474, 350000}, {475, 350000}, {477, 1300000}, {478, 350000}, {479, 350000}, {480, 2000000}, {481, 99000}, {482, 450000}, {483, 350000}, {485, 195000},
{489, 650000}, {491, 200000}, {492, 249000}, {494, 3000000}, {495, 3000000}, {496, 650000}, {500, 850000}, {502, 3000000}, {503, 3000000}, {504, 3000000},
{505, 750000}, {506, 1450000}, {507, 350000}, {508, 350000}, {509, 99000}, {510, 99000}, {514, 3000000}, {515, 3000000}, {516, 350000}, {518, 350000},
{521, 990000}, {522, 3000000}, {523, 750000}, {525, 450000}, {526, 350000}, {530, 150000}, {533, 250000}, {534, 350000}, {535, 650000}, {536, 655000},
{539, 2350000}, {541, 2400000}, {542, 190000}, {545, 1800000}, {549, 150000}, {554, 300000}, {555, 1200000}, {556, 5000000}, {557, 5000000}, {558, 650000},
{559, 650000}, {560, 990000}, {561, 290000}, {562, 650000}, {565, 650000}, {567, 350000}, {568, 1300000}, {571, 200000}, {572, 90000}, {574, 120000},
{575, 330000}, {578, 550000}, {579, 800000}, {580, 489000}, {581, 600000}, {586, 250000}, {587, 700000}, {588, 690000}, {589, 390000}, {602, 1600000},
{603, 1500000}
};