11.10.2011, 01:51
Vocк estб fazendo duas stock, retorne a string usada nela...
pawn Код:
stock GetVehiclePreco(playerid)
{
new
vid = GetPlayerVehicleID(playerid),
dreehStr[7]
;
switch(GetVehicleModel(vid))
{
case 400: format(dreehStr, sizeof(dreehStr), "40000");
case 401: format(dreehStr, sizeof(dreehStr), "15000");
case 402: format(dreehStr, sizeof(dreehStr), "50000");
case 403: format(dreehStr, sizeof(dreehStr), "25000");
case 404: format(dreehStr, sizeof(dreehStr), "12000");
case 405: format(dreehStr, sizeof(dreehStr), "45000");
case 409: format(dreehStr, sizeof(dreehStr), "110000");
case 410: format(dreehStr, sizeof(dreehStr), "10000");
case 411: format(dreehStr, sizeof(dreehStr), "16000");
case 412: format(dreehStr, sizeof(dreehStr), "23000");
case 413: format(dreehStr, sizeof(dreehStr), "30000");
case 415: format(dreehStr, sizeof(dreehStr), "135000");
case 418: format(dreehStr, sizeof(dreehStr), "11000");
case 419: format(dreehStr, sizeof(dreehStr), "13500");
case 420: format(dreehStr, sizeof(dreehStr), "11000");
case 421: format(dreehStr, sizeof(dreehStr), "36000");
case 422: format(dreehStr, sizeof(dreehStr), "18000");
case 424: format(dreehStr, sizeof(dreehStr), "14000");
case 426: format(dreehStr, sizeof(dreehStr), "30000");
case 428: format(dreehStr, sizeof(dreehStr), "90000");
case 429: format(dreehStr, sizeof(dreehStr), "75000");
case 436: format(dreehStr, sizeof(dreehStr), "12000");
case 439: format(dreehStr, sizeof(dreehStr), "14500");
case 440: format(dreehStr, sizeof(dreehStr), "35000");
case 442: format(dreehStr, sizeof(dreehStr), "25000");
case 445: format(dreehStr, sizeof(dreehStr), "28000");
case 451: format(dreehStr, sizeof(dreehStr), "150000");
case 458: format(dreehStr, sizeof(dreehStr), "13500");
case 459: format(dreehStr, sizeof(dreehStr), "23000");
case 461: format(dreehStr, sizeof(dreehStr), "28000");
case 462: format(dreehStr, sizeof(dreehStr), "7000");
case 463: format(dreehStr, sizeof(dreehStr), "12000");
case 466: format(dreehStr, sizeof(dreehStr), "22500");
case 467: format(dreehStr, sizeof(dreehStr), "22500");
case 468: format(dreehStr, sizeof(dreehStr), "17000");
case 474: format(dreehStr, sizeof(dreehStr), "14500");
case 475: format(dreehStr, sizeof(dreehStr), "24000");
case 477: format(dreehStr, sizeof(dreehStr), "78000");
case 478: format(dreehStr, sizeof(dreehStr), "23000");
case 479: format(dreehStr, sizeof(dreehStr), "23000");
case 480: format(dreehStr, sizeof(dreehStr), "105000");
case 481: format(dreehStr, sizeof(dreehStr), "5000");
case 482: format(dreehStr, sizeof(dreehStr), "30000");
case 483: format(dreehStr, sizeof(dreehStr), "15000");
case 489: format(dreehStr, sizeof(dreehStr), "43000");
case 491: format(dreehStr, sizeof(dreehStr), "29000");
case 492: format(dreehStr, sizeof(dreehStr), "26000");
case 495: format(dreehStr, sizeof(dreehStr), "45000");
case 496: format(dreehStr, sizeof(dreehStr), "19000");
case 498: format(dreehStr, sizeof(dreehStr), "45000");
case 500: format(dreehStr, sizeof(dreehStr), "27000");
case 506: format(dreehStr, sizeof(dreehStr), "125000");
case 507: format(dreehStr, sizeof(dreehStr), "30000");
case 509: format(dreehStr, sizeof(dreehStr), "1500");
case 510: format(dreehStr, sizeof(dreehStr), "8000");
case 514: format(dreehStr, sizeof(dreehStr), "35000");
case 515: format(dreehStr, sizeof(dreehStr), "45000");
case 516: format(dreehStr, sizeof(dreehStr), "18000");
case 517: format(dreehStr, sizeof(dreehStr), "20000");
case 518: format(dreehStr, sizeof(dreehStr), "23000");
case 521: format(dreehStr, sizeof(dreehStr), "45000");
case 522: format(dreehStr, sizeof(dreehStr), "105000");
case 525: format(dreehStr, sizeof(dreehStr), "11000");
case 526: format(dreehStr, sizeof(dreehStr), "12000");
case 527: format(dreehStr, sizeof(dreehStr), "11000");
case 529: format(dreehStr, sizeof(dreehStr), "14000");
case 533: format(dreehStr, sizeof(dreehStr), "35000");
case 534: format(dreehStr, sizeof(dreehStr), "20000");
case 535: format(dreehStr, sizeof(dreehStr), "35000");
case 536: format(dreehStr, sizeof(dreehStr), "24000");
case 540: format(dreehStr, sizeof(dreehStr), "28000");
case 541: format(dreehStr, sizeof(dreehStr), "150000");
case 542: format(dreehStr, sizeof(dreehStr), "18000");
case 543: format(dreehStr, sizeof(dreehStr), "18000");
case 545: format(dreehStr, sizeof(dreehStr), "35000");
case 546: format(dreehStr, sizeof(dreehStr), "17000");
case 547: format(dreehStr, sizeof(dreehStr), "16000");
case 549: format(dreehStr, sizeof(dreehStr), "16000");
case 550: format(dreehStr, sizeof(dreehStr), "30000");
case 551: format(dreehStr, sizeof(dreehStr), "36000");
case 554: format(dreehStr, sizeof(dreehStr), "20000");
case 555: format(dreehStr, sizeof(dreehStr), "60000");
case 558: format(dreehStr, sizeof(dreehStr), "65000");
case 559: format(dreehStr, sizeof(dreehStr), "70000");
case 560: format(dreehStr, sizeof(dreehStr), "105000");
case 561: format(dreehStr, sizeof(dreehStr), "50000");
case 562: format(dreehStr, sizeof(dreehStr), "86000");
case 565: format(dreehStr, sizeof(dreehStr), "47000");
case 566: format(dreehStr, sizeof(dreehStr), "27000");
case 567: format(dreehStr, sizeof(dreehStr), "32000");
case 575: format(dreehStr, sizeof(dreehStr), "22000");
case 576: format(dreehStr, sizeof(dreehStr), "18500");
case 579: format(dreehStr, sizeof(dreehStr), "38000");
case 580: format(dreehStr, sizeof(dreehStr), "45000");
case 581: format(dreehStr, sizeof(dreehStr), "22500");
case 585: format(dreehStr, sizeof(dreehStr), "15500");
case 586: format(dreehStr, sizeof(dreehStr), "23000");
case 587: format(dreehStr, sizeof(dreehStr), "22000");
case 589: format(dreehStr, sizeof(dreehStr), "16500");
case 600: format(dreehStr, sizeof(dreehStr), "13500");
case 602: format(dreehStr, sizeof(dreehStr), "28500");
case 603: format(dreehStr, sizeof(dreehStr), "50000");
case 604: format(dreehStr, sizeof(dreehStr), "22500");
case 255: format(dreehStr, sizeof(dreehStr), "000");
}
return dreehStr;
}