25.01.2012, 02:31
Im creating a vehicle shop and i want to be able to browse through the vehicles i have selected for the shop.
I was thinking to browse through the vehicles with dialog_style_msgbox with keys, 'next' and 'close'. So when i press next, the vehicle shown for player is destroyed and it will create the next one in the line.
problem is, i have no idea how to do it. all i got so far is a list of the vehicles that is for the shop.
When we are at shop, and select browse through vehicles, it will start browsing from ID 400, and then go to 402 when i press next button. hope you understood what i meant and are able to help a little with my problem.
I was thinking to browse through the vehicles with dialog_style_msgbox with keys, 'next' and 'close'. So when i press next, the vehicle shown for player is destroyed and it will create the next one in the line.
problem is, i have no idea how to do it. all i got so far is a list of the vehicles that is for the shop.
pawn Код:
#define MAX_BUYABLE_MODELS 111
new BuyableVehicle[MAX_BUYABLE_MODELS] =
{
400, 402, 403, 404, 405, 409, 411, 412, 413, 414,
415, 419, 420, 421, 422, 423, 424, 426, 428, 429,
431, 434, 437, 438, 439, 440, 442, 444, 445, 451,
457, 458, 461, 462, 463, 466, 467, 468, 470, 471,
474, 475, 477, 478, 479, 480, 481, 482, 483, 485,
489, 491, 492, 494, 495, 496, 500, 502, 503, 504,
505, 506, 507, 508, 509, 510, 514, 515, 516, 518,
521, 522, 523, 525, 526, 530, 533, 534, 535, 536,
539, 541, 542, 545, 549, 554, 555, 556, 557, 558,
559, 560, 561, 562, 565, 567, 568, 571, 572, 574,
575, 578, 579, 580, 581, 586, 587, 588, 589, 602,
603
};