Anyone got a premade array of vehicle names and prices
#1

Just because I am lazy!
Reply
#2

I have an array of vehicle NAMES. You could probably find the prices in some GF-edit script.

pawn Код:
new aVehicleNames[][] =
{
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
    "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF-Injection",
    "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
    "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
    "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
    "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
    "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI-Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
    "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super-GT",
    "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
    "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI-truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
    "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD", "SFPD", "SFPD", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer"
};
Reply
#3

pawn Код:
stock VehicleNamez(carid)
{
    new name[32];
    switch(carid)
    {
        case 0: format(name, sizeof(name), "None");
        case 400: format(name, sizeof(name), "Landstalker");
        case 401: format(name, sizeof(name), "Bravura");
        case 402: format(name, sizeof(name), "Buffalo");
        case 403: format(name, sizeof(name), "Linerunner");
        case 404: format(name, sizeof(name), "Perenail");
        case 405: format(name, sizeof(name), "Sentinel");
        case 406: format(name, sizeof(name), "Dumper");
        case 407: format(name, sizeof(name), "Firetruck");
        case 408: format(name, sizeof(name), "Trashmaster");
        case 409: format(name, sizeof(name), "Stretch");
        case 410: format(name, sizeof(name), "Manana");
        case 411: format(name, sizeof(name), "Infernus");
        case 412: format(name, sizeof(name), "Vodooo");
        case 413: format(name, sizeof(name), "Pony");
        case 414: format(name, sizeof(name), "Mule");
        case 415: format(name, sizeof(name), "Cheetah");
        case 416: format(name, sizeof(name), "Ambulance");
        case 417: format(name, sizeof(name), "Leviathan");
        case 418: format(name, sizeof(name), "Moonbeam");
        case 419: format(name, sizeof(name), "Esperanto");
        case 420: format(name, sizeof(name), "Taxi");
        case 421: format(name, sizeof(name), "Washington");
        case 422: format(name, sizeof(name), "Bobcat");
        case 423: format(name, sizeof(name), "Mr Whoopee");
        case 424: format(name, sizeof(name), "BF Injection");
        case 425: format(name, sizeof(name), "Hunter");
        case 426: format(name, sizeof(name), "Premier");
        case 427: format(name, sizeof(name), "S.W.A.T Truck");
        case 428: format(name, sizeof(name), "Securicar");
        case 429: format(name, sizeof(name), "Banshee");
        case 430: format(name, sizeof(name), "Predator");
        case 431: format(name, sizeof(name), "Bus");
        case 432: format(name, sizeof(name), "Rhino");
        case 433: format(name, sizeof(name), "Barracks");
        case 434: format(name, sizeof(name), "Hotknife");
        case 435: format(name, sizeof(name), "Trailer");
        case 436: format(name, sizeof(name), "Previon");
        case 437: format(name, sizeof(name), "Coach");
        case 438: format(name, sizeof(name), "Cabbie");
        case 439: format(name, sizeof(name), "Stallion");
        case 440: format(name, sizeof(name), "Rumpo");
        case 441: format(name, sizeof(name), "RC Bandit");
        case 442: format(name, sizeof(name), "Romero");
        case 443: format(name, sizeof(name), "Packer");
        case 444: format(name, sizeof(name), "Monster");
        case 445: format(name, sizeof(name), "Admiral");
        case 446: format(name, sizeof(name), "Squalo");
        case 447: format(name, sizeof(name), "Seasparrow");
        case 448: format(name, sizeof(name), "Pizza Boy");
        case 449: format(name, sizeof(name), "Tram");
        case 450: format(name, sizeof(name), "Trailer 2");
        case 451: format(name, sizeof(name), "Turismo");
        case 452: format(name, sizeof(name), "Speeder");
        case 453: format(name, sizeof(name), "Refeer");
        case 454: format(name, sizeof(name), "Tropic");
        case 455: format(name, sizeof(name), "Flatbed");
        case 456: format(name, sizeof(name), "Yankee");
        case 457: format(name, sizeof(name), "Caddy");
        case 458: format(name, sizeof(name), "Solair");
        case 459: format(name, sizeof(name), "Top Fun");
        case 460: format(name, sizeof(name), "Skimmer");
        case 461: format(name, sizeof(name), "PCJ-600");
        case 462: format(name, sizeof(name), "Faggio");
        case 463: format(name, sizeof(name), "Freeway");
        case 464: format(name, sizeof(name), "RC Baron");
        case 465: format(name, sizeof(name), "RC Raider");
        case 466: format(name, sizeof(name), "Glendade");
        case 467: format(name, sizeof(name), "Oceanic");
        case 468: format(name, sizeof(name), "Sanchez");
        case 469: format(name, sizeof(name), "Sparrow");
        case 470: format(name, sizeof(name), "Patriot");
        case 471: format(name, sizeof(name), "Quad");
        case 472: format(name, sizeof(name), "Coastguard");
        case 473: format(name, sizeof(name), "Dinghy");
        case 474: format(name, sizeof(name), "Hermes");
        case 475: format(name, sizeof(name), "Sabre");
        case 476: format(name, sizeof(name), "Rustler");
        case 477: format(name, sizeof(name), "ZR-350");
        case 478: format(name, sizeof(name), "Walton");
        case 479: format(name, sizeof(name), "Regina");
        case 480: format(name, sizeof(name), "Comet");
        case 481: format(name, sizeof(name), "BMX");
        case 482: format(name, sizeof(name), "Burrito");
        case 483: format(name, sizeof(name), "Camper");
        case 484: format(name, sizeof(name), "Marquis");
        case 485: format(name, sizeof(name), "Baggage");
        case 486: format(name, sizeof(name), "Dozer");
        case 487: format(name, sizeof(name), "Maverick");
        case 488: format(name, sizeof(name), "News Maverick");
        case 489: format(name, sizeof(name), "Rancher");
        case 490: format(name, sizeof(name), "Federal Rancher");
        case 491: format(name, sizeof(name), "Virgo");
        case 492: format(name, sizeof(name), "Greenwood");
        case 493: format(name, sizeof(name), "Jetmax");
        case 494: format(name, sizeof(name), "Hotring");
        case 495: format(name, sizeof(name), "Sandking");
        case 496: format(name, sizeof(name), "Blista Impact");
        case 497: format(name, sizeof(name), "Police Maverick");
        case 498: format(name, sizeof(name), "Boxville");
        case 499: format(name, sizeof(name), "Benson");
        case 500: format(name, sizeof(name), "Mesa");
        case 501: format(name, sizeof(name), "RC Goblin");
        case 502: format(name, sizeof(name), "Hotring A");
        case 503: format(name, sizeof(name), "Hotring B");
        case 504: format(name, sizeof(name), "Blooding Banger");
        case 505: format(name, sizeof(name), "Rancher");
        case 506: format(name, sizeof(name), "Super GT");
        case 507: format(name, sizeof(name), "Elegant");
        case 508: format(name, sizeof(name), "Journey");
        case 509: format(name, sizeof(name), "Bike");
        case 510: format(name, sizeof(name), "Mountain Bike");
        case 511: format(name, sizeof(name), "Beagle");
        case 512: format(name, sizeof(name), "Cropduster");
        case 513: format(name, sizeof(name), "Stuntplane");
        case 514: format(name, sizeof(name), "Petrol");
        case 515: format(name, sizeof(name), "Roadtrain");
        case 516: format(name, sizeof(name), "Nebula");
        case 517: format(name, sizeof(name), "Majestic");
        case 518: format(name, sizeof(name), "Buccaneer");
        case 519: format(name, sizeof(name), "Shamal");
        case 520: format(name, sizeof(name), "Hydra");
        case 521: format(name, sizeof(name), "FCR-300");
        case 522: format(name, sizeof(name), "NRG-500");
        case 523: format(name, sizeof(name), "HPV-1000");
        case 524: format(name, sizeof(name), "Cement Truck");
        case 525: format(name, sizeof(name), "Towtruck");
        case 526: format(name, sizeof(name), "Fortune");
        case 527: format(name, sizeof(name), "Cadrona");
        case 528: format(name, sizeof(name), "Federal Truck");
        case 529: format(name, sizeof(name), "Williard");
        case 530: format(name, sizeof(name), "Fork Lift");
        case 531: format(name, sizeof(name), "Tractor");
        case 532: format(name, sizeof(name), "Combine");
        case 533: format(name, sizeof(name), "Feltzer");
        case 534: format(name, sizeof(name), "Remington");
        case 535: format(name, sizeof(name), "Slamvan");
        case 536: format(name, sizeof(name), "Blade");
        case 537: format(name, sizeof(name), "Freight");
        case 538: format(name, sizeof(name), "Streak");
        case 539: format(name, sizeof(name), "Vortex");
        case 540: format(name, sizeof(name), "Vincent");
        case 541: format(name, sizeof(name), "Bullet");
        case 542: format(name, sizeof(name), "Clover");
        case 543: format(name, sizeof(name), "Sadler");
        case 544: format(name, sizeof(name), "Stairs Firetruck");
        case 545: format(name, sizeof(name), "Hustler");
        case 546: format(name, sizeof(name), "Intruder");
        case 547: format(name, sizeof(name), "Primo");
        case 548: format(name, sizeof(name), "Cargobob");
        case 549: format(name, sizeof(name), "Tampa");
        case 550: format(name, sizeof(name), "Sunrise");
        case 551: format(name, sizeof(name), "Merit");
        case 552: format(name, sizeof(name), "Utility Van");
        case 553: format(name, sizeof(name), "Nevada");
        case 554: format(name, sizeof(name), "Yosemite");
        case 555: format(name, sizeof(name), "Windsor");
        case 556: format(name, sizeof(name), "Monster A");
        case 557: format(name, sizeof(name), "Monster B");
        case 558: format(name, sizeof(name), "Uranus");
        case 559: format(name, sizeof(name), "Jester");
        case 560: format(name, sizeof(name), "Sultan");
        case 561: format(name, sizeof(name), "Stratum");
        case 562: format(name, sizeof(name), "Elegy");
        case 563: format(name, sizeof(name), "Raindance");
        case 564: format(name, sizeof(name), "RC Tiger");
        case 565: format(name, sizeof(name), "Flash");
        case 566: format(name, sizeof(name), "Tahoma");
        case 567: format(name, sizeof(name), "Savanna");
        case 568: format(name, sizeof(name), "Bandito");
        case 569: format(name, sizeof(name), "Freight Flat");
        case 570: format(name, sizeof(name), "Streak");
        case 571: format(name, sizeof(name), "Kart");
        case 572: format(name, sizeof(name), "Mower");
        case 573: format(name, sizeof(name), "Duneride");
        case 574: format(name, sizeof(name), "Sweeper");
        case 575: format(name, sizeof(name), "Broadway");
        case 576: format(name, sizeof(name), "Tornado");
        case 577: format(name, sizeof(name), "AT-400");
        case 578: format(name, sizeof(name), "DFT-30");
        case 579: format(name, sizeof(name), "Huntley");
        case 580: format(name, sizeof(name), "Stafford");
        case 581: format(name, sizeof(name), "BF-400");
        case 582: format(name, sizeof(name), "Raindance");
        case 583: format(name, sizeof(name), "News Van");
        case 584: format(name, sizeof(name), "Tug");
        case 585: format(name, sizeof(name), "Petrol Tanker");
        case 586: format(name, sizeof(name), "Wayfarer");
        case 587: format(name, sizeof(name), "Euros");
        case 588: format(name, sizeof(name), "Hotdog");
        case 589: format(name, sizeof(name), "Club");
        case 590: format(name, sizeof(name), "Freight Box");
        case 591: format(name, sizeof(name), "Trailer 3");
        case 592: format(name, sizeof(name), "Andromada");
        case 593: format(name, sizeof(name), "Dodo");
        case 594: format(name, sizeof(name), "RC Cam");
        case 595: format(name, sizeof(name), "Launch");
        case 596: format(name, sizeof(name), "LSPD Patrol Car");
        case 597: format(name, sizeof(name), "FBI Patrol Car");
        case 598: format(name, sizeof(name), "NG Patrol Car");
        case 599: format(name, sizeof(name), "LSPD Patrol Ranger");
        case 600: format(name, sizeof(name), "Picador");
        case 601: format(name, sizeof(name), "S.W.A.T Tank");
                case 602: format(name, sizeof(name), "Alpha");
        case 603: format(name, sizeof(name), "Phoenix");
        case 609: format(name, sizeof(name), "Boxville");
    }
    return name;
}
This is the vehicle name stock I use, I guess.
Reply
#4

Quote:
Originally Posted by L.Hudson
Посмотреть сообщение
pawn Код:
stock VehicleNamez(carid)
{
    new name[32];
    switch(carid)
    {
        case 0: format(name, sizeof(name), "None");
        case 400: format(name, sizeof(name), "Landstalker");
        case 401: format(name, sizeof(name), "Bravura");
        case 402: format(name, sizeof(name), "Buffalo");
        case 403: format(name, sizeof(name), "Linerunner");
        case 404: format(name, sizeof(name), "Perenail");
        case 405: format(name, sizeof(name), "Sentinel");
        case 406: format(name, sizeof(name), "Dumper");
        case 407: format(name, sizeof(name), "Firetruck");
        case 408: format(name, sizeof(name), "Trashmaster");
        case 409: format(name, sizeof(name), "Stretch");
        case 410: format(name, sizeof(name), "Manana");
        case 411: format(name, sizeof(name), "Infernus");
        case 412: format(name, sizeof(name), "Vodooo");
        case 413: format(name, sizeof(name), "Pony");
        case 414: format(name, sizeof(name), "Mule");
        case 415: format(name, sizeof(name), "Cheetah");
        case 416: format(name, sizeof(name), "Ambulance");
        case 417: format(name, sizeof(name), "Leviathan");
        case 418: format(name, sizeof(name), "Moonbeam");
        case 419: format(name, sizeof(name), "Esperanto");
        case 420: format(name, sizeof(name), "Taxi");
        case 421: format(name, sizeof(name), "Washington");
        case 422: format(name, sizeof(name), "Bobcat");
        case 423: format(name, sizeof(name), "Mr Whoopee");
        case 424: format(name, sizeof(name), "BF Injection");
        case 425: format(name, sizeof(name), "Hunter");
        case 426: format(name, sizeof(name), "Premier");
        case 427: format(name, sizeof(name), "S.W.A.T Truck");
        case 428: format(name, sizeof(name), "Securicar");
        case 429: format(name, sizeof(name), "Banshee");
        case 430: format(name, sizeof(name), "Predator");
        case 431: format(name, sizeof(name), "Bus");
        case 432: format(name, sizeof(name), "Rhino");
        case 433: format(name, sizeof(name), "Barracks");
        case 434: format(name, sizeof(name), "Hotknife");
        case 435: format(name, sizeof(name), "Trailer");
        case 436: format(name, sizeof(name), "Previon");
        case 437: format(name, sizeof(name), "Coach");
        case 438: format(name, sizeof(name), "Cabbie");
        case 439: format(name, sizeof(name), "Stallion");
        case 440: format(name, sizeof(name), "Rumpo");
        case 441: format(name, sizeof(name), "RC Bandit");
        case 442: format(name, sizeof(name), "Romero");
        case 443: format(name, sizeof(name), "Packer");
        case 444: format(name, sizeof(name), "Monster");
        case 445: format(name, sizeof(name), "Admiral");
        case 446: format(name, sizeof(name), "Squalo");
        case 447: format(name, sizeof(name), "Seasparrow");
        case 448: format(name, sizeof(name), "Pizza Boy");
        case 449: format(name, sizeof(name), "Tram");
        case 450: format(name, sizeof(name), "Trailer 2");
        case 451: format(name, sizeof(name), "Turismo");
        case 452: format(name, sizeof(name), "Speeder");
        case 453: format(name, sizeof(name), "Refeer");
        case 454: format(name, sizeof(name), "Tropic");
        case 455: format(name, sizeof(name), "Flatbed");
        case 456: format(name, sizeof(name), "Yankee");
        case 457: format(name, sizeof(name), "Caddy");
        case 458: format(name, sizeof(name), "Solair");
        case 459: format(name, sizeof(name), "Top Fun");
        case 460: format(name, sizeof(name), "Skimmer");
        case 461: format(name, sizeof(name), "PCJ-600");
        case 462: format(name, sizeof(name), "Faggio");
        case 463: format(name, sizeof(name), "Freeway");
        case 464: format(name, sizeof(name), "RC Baron");
        case 465: format(name, sizeof(name), "RC Raider");
        case 466: format(name, sizeof(name), "Glendade");
        case 467: format(name, sizeof(name), "Oceanic");
        case 468: format(name, sizeof(name), "Sanchez");
        case 469: format(name, sizeof(name), "Sparrow");
        case 470: format(name, sizeof(name), "Patriot");
        case 471: format(name, sizeof(name), "Quad");
        case 472: format(name, sizeof(name), "Coastguard");
        case 473: format(name, sizeof(name), "Dinghy");
        case 474: format(name, sizeof(name), "Hermes");
        case 475: format(name, sizeof(name), "Sabre");
        case 476: format(name, sizeof(name), "Rustler");
        case 477: format(name, sizeof(name), "ZR-350");
        case 478: format(name, sizeof(name), "Walton");
        case 479: format(name, sizeof(name), "Regina");
        case 480: format(name, sizeof(name), "Comet");
        case 481: format(name, sizeof(name), "BMX");
        case 482: format(name, sizeof(name), "Burrito");
        case 483: format(name, sizeof(name), "Camper");
        case 484: format(name, sizeof(name), "Marquis");
        case 485: format(name, sizeof(name), "Baggage");
        case 486: format(name, sizeof(name), "Dozer");
        case 487: format(name, sizeof(name), "Maverick");
        case 488: format(name, sizeof(name), "News Maverick");
        case 489: format(name, sizeof(name), "Rancher");
        case 490: format(name, sizeof(name), "Federal Rancher");
        case 491: format(name, sizeof(name), "Virgo");
        case 492: format(name, sizeof(name), "Greenwood");
        case 493: format(name, sizeof(name), "Jetmax");
        case 494: format(name, sizeof(name), "Hotring");
        case 495: format(name, sizeof(name), "Sandking");
        case 496: format(name, sizeof(name), "Blista Impact");
        case 497: format(name, sizeof(name), "Police Maverick");
        case 498: format(name, sizeof(name), "Boxville");
        case 499: format(name, sizeof(name), "Benson");
        case 500: format(name, sizeof(name), "Mesa");
        case 501: format(name, sizeof(name), "RC Goblin");
        case 502: format(name, sizeof(name), "Hotring A");
        case 503: format(name, sizeof(name), "Hotring B");
        case 504: format(name, sizeof(name), "Blooding Banger");
        case 505: format(name, sizeof(name), "Rancher");
        case 506: format(name, sizeof(name), "Super GT");
        case 507: format(name, sizeof(name), "Elegant");
        case 508: format(name, sizeof(name), "Journey");
        case 509: format(name, sizeof(name), "Bike");
        case 510: format(name, sizeof(name), "Mountain Bike");
        case 511: format(name, sizeof(name), "Beagle");
        case 512: format(name, sizeof(name), "Cropduster");
        case 513: format(name, sizeof(name), "Stuntplane");
        case 514: format(name, sizeof(name), "Petrol");
        case 515: format(name, sizeof(name), "Roadtrain");
        case 516: format(name, sizeof(name), "Nebula");
        case 517: format(name, sizeof(name), "Majestic");
        case 518: format(name, sizeof(name), "Buccaneer");
        case 519: format(name, sizeof(name), "Shamal");
        case 520: format(name, sizeof(name), "Hydra");
        case 521: format(name, sizeof(name), "FCR-300");
        case 522: format(name, sizeof(name), "NRG-500");
        case 523: format(name, sizeof(name), "HPV-1000");
        case 524: format(name, sizeof(name), "Cement Truck");
        case 525: format(name, sizeof(name), "Towtruck");
        case 526: format(name, sizeof(name), "Fortune");
        case 527: format(name, sizeof(name), "Cadrona");
        case 528: format(name, sizeof(name), "Federal Truck");
        case 529: format(name, sizeof(name), "Williard");
        case 530: format(name, sizeof(name), "Fork Lift");
        case 531: format(name, sizeof(name), "Tractor");
        case 532: format(name, sizeof(name), "Combine");
        case 533: format(name, sizeof(name), "Feltzer");
        case 534: format(name, sizeof(name), "Remington");
        case 535: format(name, sizeof(name), "Slamvan");
        case 536: format(name, sizeof(name), "Blade");
        case 537: format(name, sizeof(name), "Freight");
        case 538: format(name, sizeof(name), "Streak");
        case 539: format(name, sizeof(name), "Vortex");
        case 540: format(name, sizeof(name), "Vincent");
        case 541: format(name, sizeof(name), "Bullet");
        case 542: format(name, sizeof(name), "Clover");
        case 543: format(name, sizeof(name), "Sadler");
        case 544: format(name, sizeof(name), "Stairs Firetruck");
        case 545: format(name, sizeof(name), "Hustler");
        case 546: format(name, sizeof(name), "Intruder");
        case 547: format(name, sizeof(name), "Primo");
        case 548: format(name, sizeof(name), "Cargobob");
        case 549: format(name, sizeof(name), "Tampa");
        case 550: format(name, sizeof(name), "Sunrise");
        case 551: format(name, sizeof(name), "Merit");
        case 552: format(name, sizeof(name), "Utility Van");
        case 553: format(name, sizeof(name), "Nevada");
        case 554: format(name, sizeof(name), "Yosemite");
        case 555: format(name, sizeof(name), "Windsor");
        case 556: format(name, sizeof(name), "Monster A");
        case 557: format(name, sizeof(name), "Monster B");
        case 558: format(name, sizeof(name), "Uranus");
        case 559: format(name, sizeof(name), "Jester");
        case 560: format(name, sizeof(name), "Sultan");
        case 561: format(name, sizeof(name), "Stratum");
        case 562: format(name, sizeof(name), "Elegy");
        case 563: format(name, sizeof(name), "Raindance");
        case 564: format(name, sizeof(name), "RC Tiger");
        case 565: format(name, sizeof(name), "Flash");
        case 566: format(name, sizeof(name), "Tahoma");
        case 567: format(name, sizeof(name), "Savanna");
        case 568: format(name, sizeof(name), "Bandito");
        case 569: format(name, sizeof(name), "Freight Flat");
        case 570: format(name, sizeof(name), "Streak");
        case 571: format(name, sizeof(name), "Kart");
        case 572: format(name, sizeof(name), "Mower");
        case 573: format(name, sizeof(name), "Duneride");
        case 574: format(name, sizeof(name), "Sweeper");
        case 575: format(name, sizeof(name), "Broadway");
        case 576: format(name, sizeof(name), "Tornado");
        case 577: format(name, sizeof(name), "AT-400");
        case 578: format(name, sizeof(name), "DFT-30");
        case 579: format(name, sizeof(name), "Huntley");
        case 580: format(name, sizeof(name), "Stafford");
        case 581: format(name, sizeof(name), "BF-400");
        case 582: format(name, sizeof(name), "Raindance");
        case 583: format(name, sizeof(name), "News Van");
        case 584: format(name, sizeof(name), "Tug");
        case 585: format(name, sizeof(name), "Petrol Tanker");
        case 586: format(name, sizeof(name), "Wayfarer");
        case 587: format(name, sizeof(name), "Euros");
        case 588: format(name, sizeof(name), "Hotdog");
        case 589: format(name, sizeof(name), "Club");
        case 590: format(name, sizeof(name), "Freight Box");
        case 591: format(name, sizeof(name), "Trailer 3");
        case 592: format(name, sizeof(name), "Andromada");
        case 593: format(name, sizeof(name), "Dodo");
        case 594: format(name, sizeof(name), "RC Cam");
        case 595: format(name, sizeof(name), "Launch");
        case 596: format(name, sizeof(name), "LSPD Patrol Car");
        case 597: format(name, sizeof(name), "FBI Patrol Car");
        case 598: format(name, sizeof(name), "NG Patrol Car");
        case 599: format(name, sizeof(name), "LSPD Patrol Ranger");
        case 600: format(name, sizeof(name), "Picador");
        case 601: format(name, sizeof(name), "S.W.A.T Tank");
                case 602: format(name, sizeof(name), "Alpha");
        case 603: format(name, sizeof(name), "Phoenix");
        case 609: format(name, sizeof(name), "Boxville");
    }
    return name;
}
This is the vehicle name stock I use, I guess.
There's just a couple missing from that, I made this the other day though:
pawn Код:
stock GetVehicleName(vehicleid)
{
    new v, string[128];
    v = GetVehicleModel(vehicleid);
    switch(v)
    {
        case 400: format(string, sizeof(string), "Landstalker");
        case 401: format(string, sizeof(string), "Bravura");
        case 402: format(string, sizeof(string), "Buffalo");
        case 403: format(string, sizeof(string), "Linerunner");
        case 404: format(string, sizeof(string), "Perenniel");
        case 405: format(string, sizeof(string), "Sentinel");
        case 406: format(string, sizeof(string), "Dumper");
        case 407: format(string, sizeof(string), "Firetruck");
        case 408: format(string, sizeof(string), "Trashmaster");
        case 409: format(string, sizeof(string), "Stretch");
        case 410: format(string, sizeof(string), "Manana");
        case 411: format(string, sizeof(string), "Infernus");
        case 412: format(string, sizeof(string), "Voodoo");
        case 413: format(string, sizeof(string), "Pony");
        case 414: format(string, sizeof(string), "Mule");
        case 415: format(string, sizeof(string), "Cheetah");
        case 416: format(string, sizeof(string), "Ambulance");
        case 417: format(string, sizeof(string), "Leviathan");
        case 418: format(string, sizeof(string), "Moonbeam");
        case 419: format(string, sizeof(string), "Esperanto");
        case 420: format(string, sizeof(string), "Taxi");
        case 421: format(string, sizeof(string), "Washington");
        case 422: format(string, sizeof(string), "Bobcat");
        case 423: format(string, sizeof(string), "Mr Whoopee");
        case 424: format(string, sizeof(string), "BF Injection");
        case 425: format(string, sizeof(string), "Hunter");
        case 426: format(string, sizeof(string), "Premier");
        case 427: format(string, sizeof(string), "Enforcer");
        case 428: format(string, sizeof(string), "Securicar");
        case 429: format(string, sizeof(string), "Banshee");
        case 430: format(string, sizeof(string), "Predator");
        case 431: format(string, sizeof(string), "Bus");
        case 432: format(string, sizeof(string), "Rhino");
        case 433: format(string, sizeof(string), "Barrracks");
        case 434: format(string, sizeof(string), "Hotknife");
        case 435: format(string, sizeof(string), "Article Trailer");
        case 436: format(string, sizeof(string), "Previon");
        case 437: format(string, sizeof(string), "Coach");
        case 438: format(string, sizeof(string), "Cabbie");
        case 439: format(string, sizeof(string), "Stallion");
        case 440: format(string, sizeof(string), "Rumpo");
        case 441: format(string, sizeof(string), "RC Bandit");
        case 442: format(string, sizeof(string), "Romero");
        case 443: format(string, sizeof(string), "Packer");
        case 444: format(string, sizeof(string), "Monster");
        case 445: format(string, sizeof(string), "Admiral");
        case 446: format(string, sizeof(string), "Squallo");
        case 447: format(string, sizeof(string), "Seasparrow");
        case 448: format(string, sizeof(string), "Pizzaboy");
        case 449: format(string, sizeof(string), "Tram");
        case 450: format(string, sizeof(string), "Article Trailer 2");
        case 451: format(string, sizeof(string), "Turismo");
        case 452: format(string, sizeof(string), "Speeder");
        case 453: format(string, sizeof(string), "Reefer");
        case 454: format(string, sizeof(string), "Tropic");
        case 455: format(string, sizeof(string), "Flatbed");
        case 456: format(string, sizeof(string), "Yankee");
        case 457: format(string, sizeof(string), "Caddy");
        case 458: format(string, sizeof(string), "Solair");
        case 459: format(string, sizeof(string), "Topfun Van (Berkley's RC)");
        case 460: format(string, sizeof(string), "Skimmer");
        case 461: format(string, sizeof(string), "PCJ-600");
        case 462: format(string, sizeof(string), "Faggio");
        case 463: format(string, sizeof(string), "Freeway");
        case 464: format(string, sizeof(string), "RC Baron");
        case 465: format(string, sizeof(string), "RC Raider");
        case 466: format(string, sizeof(string), "Glendale");
        case 467: format(string, sizeof(string), "Oceanic");
        case 468: format(string, sizeof(string), "Sanchez");
        case 469: format(string, sizeof(string), "Sparrow");
        case 470: format(string, sizeof(string), "Patriot");
        case 471: format(string, sizeof(string), "Quad");
        case 472: format(string, sizeof(string), "Coastguard");
        case 473: format(string, sizeof(string), "Dinghy");
        case 474: format(string, sizeof(string), "Hermes");
        case 475: format(string, sizeof(string), "Sabre");
        case 476: format(string, sizeof(string), "Rustler");
        case 477: format(string, sizeof(string), "ZR-350");
        case 478: format(string, sizeof(string), "Walton");
        case 479: format(string, sizeof(string), "Regina");
        case 480: format(string, sizeof(string), "Comet");
        case 481: format(string, sizeof(string), "BMX");
        case 482: format(string, sizeof(string), "Burrito");
        case 483: format(string, sizeof(string), "Camper");
        case 484: format(string, sizeof(string), "Marquis");
        case 485: format(string, sizeof(string), "Baggage");
        case 486: format(string, sizeof(string), "Dozer");
        case 487: format(string, sizeof(string), "Maverick");
        case 488: format(string, sizeof(string), "News Maverick");
        case 489: format(string, sizeof(string), "Rancher");
        case 490: format(string, sizeof(string), "FBI Rancher");
        case 491: format(string, sizeof(string), "Virgo");
        case 492: format(string, sizeof(string), "Greenwood");
        case 493: format(string, sizeof(string), "Jetmax");
        case 494: format(string, sizeof(string), "Hotring Racer");
        case 495: format(string, sizeof(string), "Sandking");
        case 496: format(string, sizeof(string), "Blista Compact");
        case 497: format(string, sizeof(string), "Police Maverick");
        case 498: format(string, sizeof(string), "Boxville");
        case 499: format(string, sizeof(string), "Benson");
        case 500: format(string, sizeof(string), "Mesa");
        case 501: format(string, sizeof(string), "RC Goblin");
        case 502: format(string, sizeof(string), "Hotring Racer");
        case 503: format(string, sizeof(string), "Hotring Racer");
        case 504: format(string, sizeof(string), "Bloodring Banger");
        case 505: format(string, sizeof(string), "Rancher");
        case 506: format(string, sizeof(string), "Super GT");
        case 507: format(string, sizeof(string), "Elegant");
        case 508: format(string, sizeof(string), "Journey");
        case 509: format(string, sizeof(string), "Bike");
        case 510: format(string, sizeof(string), "Mountain Bike");
        case 511: format(string, sizeof(string), "Beagle");
        case 512: format(string, sizeof(string), "Cropduster");
        case 513: format(string, sizeof(string), "Stuntplane");
        case 514: format(string, sizeof(string), "Tanker");
        case 515: format(string, sizeof(string), "Roadtrain");
        case 516: format(string, sizeof(string), "Nebula");
        case 517: format(string, sizeof(string), "Majestic");
        case 518: format(string, sizeof(string), "Buccaneer");
        case 519: format(string, sizeof(string), "Shamal");
        case 520: format(string, sizeof(string), "Hydra");
        case 521: format(string, sizeof(string), "FCR-900");
        case 522: format(string, sizeof(string), "NRG-500");
        case 523: format(string, sizeof(string), "HPV1000");
        case 524: format(string, sizeof(string), "Cement Truck");
        case 525: format(string, sizeof(string), "Towtruck");
        case 526: format(string, sizeof(string), "Fortune");
        case 527: format(string, sizeof(string), "Cadrona");
        case 528: format(string, sizeof(string), "FBI Truck");
        case 529: format(string, sizeof(string), "Willard");
        case 530: format(string, sizeof(string), "Forklift");
        case 531: format(string, sizeof(string), "Tractor");
        case 532: format(string, sizeof(string), "Combine Harvester");
        case 533: format(string, sizeof(string), "Feltzer");
        case 534: format(string, sizeof(string), "Remington");
        case 535: format(string, sizeof(string), "Slamvan");
        case 536: format(string, sizeof(string), "Blade");
        case 537: format(string, sizeof(string), "Freight");
        case 538: format(string, sizeof(string), "Brownstreak");
        case 539: format(string, sizeof(string), "Vortex");
        case 540: format(string, sizeof(string), "Vincent");
        case 541: format(string, sizeof(string), "Bullet");
        case 542: format(string, sizeof(string), "Clover");
        case 543: format(string, sizeof(string), "Sadler");
        case 544: format(string, sizeof(string), "Firetruck");
        case 545: format(string, sizeof(string), "Hustler");
        case 546: format(string, sizeof(string), "Intruder");
        case 547: format(string, sizeof(string), "Primo");
        case 548: format(string, sizeof(string), "Cargobob");
        case 549: format(string, sizeof(string), "Tampa");
        case 550: format(string, sizeof(string), "Sunrise");
        case 551: format(string, sizeof(string), "Merit");
        case 552: format(string, sizeof(string), "Utility Van");
        case 553: format(string, sizeof(string), "Nevada");
        case 554: format(string, sizeof(string), "Yosemite");
        case 555: format(string, sizeof(string), "Windsor");
        case 556: format(string, sizeof(string), "Monster");
        case 557: format(string, sizeof(string), "Monster");
        case 558: format(string, sizeof(string), "Uranus");
        case 559: format(string, sizeof(string), "Jester");
        case 560: format(string, sizeof(string), "Sultan");
        case 561: format(string, sizeof(string), "Stratum");
        case 562: format(string, sizeof(string), "Elegy");
        case 563: format(string, sizeof(string), "Raindance");
        case 564: format(string, sizeof(string), "RC Tiger");
        case 565: format(string, sizeof(string), "Flash");
        case 566: format(string, sizeof(string), "Tahoma");
        case 567: format(string, sizeof(string), "Savanna");
        case 568: format(string, sizeof(string), "Bandito");
        case 569: format(string, sizeof(string), "Freight Flat Trailer");
        case 570: format(string, sizeof(string), "Streak Trailer");
        case 571: format(string, sizeof(string), "Kart");
        case 572: format(string, sizeof(string), "Mower");
        case 573: format(string, sizeof(string), "Dune");
        case 574: format(string, sizeof(string), "Sweeper");
        case 575: format(string, sizeof(string), "Broadway");
        case 576: format(string, sizeof(string), "Tornado");
        case 577: format(string, sizeof(string), "AT500");
        case 578: format(string, sizeof(string), "DFT-30");
        case 579: format(string, sizeof(string), "Huntley");
        case 580: format(string, sizeof(string), "Stafford");
        case 581: format(string, sizeof(string), "BF-400");
        case 582: format(string, sizeof(string), "Newsvan");
        case 583: format(string, sizeof(string), "Tug");
        case 584: format(string, sizeof(string), "Petrol Trailer");
        case 585: format(string, sizeof(string), "Emporer");
        case 586: format(string, sizeof(string), "Wayfarer");
        case 587: format(string, sizeof(string), "Euros");
        case 588: format(string, sizeof(string), "Hotdog");
        case 589: format(string, sizeof(string), "Club");
        case 590: format(string, sizeof(string), "Freight Box Trailer");
        case 591: format(string, sizeof(string), "Article Trailer 3");
        case 592: format(string, sizeof(string), "Andromada");
        case 593: format(string, sizeof(string), "Dodo");
        case 594: format(string, sizeof(string), "RC Cam");
        case 595: format(string, sizeof(string), "Launch");
        case 596: format(string, sizeof(string), "LSPD Cruiser");
        case 597: format(string, sizeof(string), "SFPD Crusier");
        case 598: format(string, sizeof(string), "LVPD Cruiser");
        case 599: format(string, sizeof(string), "Police Ranger");
        case 600: format(string, sizeof(string), "Picador");
        case 601: format(string, sizeof(string), "S.W.A.T.");
        case 602: format(string, sizeof(string), "Alpha");
        case 603: format(string, sizeof(string), "Phoenix");
        case 604: format(string, sizeof(string), "Shitty Glendale");
        case 605: format(string, sizeof(string), "Shitty Sadler");
        case 606: format(string, sizeof(string), "Baggage Trailer A");
        case 607: format(string, sizeof(string), "Baggage Trailer B");
        case 608: format(string, sizeof(string), "Tug Stairs");
        case 609: format(string, sizeof(string), "Boxville");
        case 610: format(string, sizeof(string), "Farm Trailer");
        case 611: format(string, sizeof(string), "Utility Trailer");
    }
    return string;
}
Reply
#5

Код:
case 400: format(string, sizeof(string), "Landstalker");
This can be changed to...
Код:
case 400: string = "Landstalker";
Though the array is better anyway, like ****** already stated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)