- Автор темы
- #1
2.6. Весь код необходимо брать под тег "Код".
Всем привет, добавлял LauncherAddon на свой сервер, столкнулся с проблемой.
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7118) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 022: must be lvalue (non-constant)
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 036: empty statement
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 024: "break" or "continue" is out of context
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : fatal error 107: too many error messages on one line
Pawn:
stock GetVehicleName(model)
{
new name[32];
switch(model)
{
case 400: name = "Landstalker"; break;
case 401: name = "Bravura"; break;
case 402: name = "Buffalo"; break;
case 403: name = "Linerunner"; break;
case 404: name = "Perenniel"; break;
case 405: name = "Sentinel"; break;
case 406: name = "Dumper"; break;
case 407: name = "Firetruck"; break;
case 408: name = "Trashmaster"; break;
case 409: name = "Stretch"; break;
case 410: name = "Manana"; break;
case 411: name = "Infernus"; break;
case 412: name = "Voodoo"; break;
case 413: name = "Pony"; break;
case 414: name = "Mule"; break;
case 415: name = "Cheetah"; break;
case 416: name = "Ambulance"; break;
case 417: name = "Leviathan"; break;
case 418: name = "Moonbeam"; break;
case 419: name = "Esperanto"; break;
case 420: name = "Taxi"; break;
case 421: name = "Washington"; break;
case 422: name = "Bobcat"; break;
case 423: name = "Mr Whoopee"; break;
case 424: name = "BF Injection"; break;
case 425: name = "Hunter"; break;
case 426: name = "Premier"; break;
case 427: name = "Enforcer"; break;
case 428: name = "Securicar"; break;
case 429: name = "Banshee"; break;
case 430: name = "Predator"; break;
case 431: name = "Bus"; break;
case 432: name = "Rhino"; break;
case 433: name = "Barracks"; break;
case 434: name = "Hotknife"; break;
case 435: name = "Article Trailer"; break;
case 436: name = "Previon"; break;
case 437: name = "Coach"; break;
case 438: name = "Cabbie"; break;
case 439: name = "Stallion"; break;
case 440: name = "Rumpo"; break;
case 441: name = "RC Bandit"; break;
case 442: name = "Romero"; break;
case 443: name = "Packer"; break;
case 444: name = "Monster"; break;
case 445: name = "Admiral"; break;
case 446: name = "Squallo"; break;
case 447: name = "Seasparrow"; break;
case 448: name = "Pizzaboy"; break;
case 449: name = "Tram"; break;
case 450: name = "Article Trailer 2"; break;
case 451: name = "Turismo"; break;
case 452: name = "Speeder"; break;
case 453: name = "Reefer"; break;
case 454: name = "Tropic"; break;
case 455: name = "Flatbed"; break;
case 456: name = "Yankee"; break;
case 457: name = "Caddy"; break;
case 458: name = "Solair"; break;
case 459: name = "Berkley's RC Van"; break;
case 460: name = "Skimmer"; break;
case 461: name = "PCJ-600"; break;
case 462: name = "Faggio"; break;
case 463: name = "Freeway"; break;
case 464: name = "RC Baron"; break;
case 465: name = "RC Raider"; break;
case 466: name = "Glendale"; break;
case 467: name = "Oceanic"; break;
case 468: name = "Sanchez"; break;
case 469: name = "Sparrow"; break;
case 470: name = "Patriot"; break;
case 471: name = "Quad"; break;
case 472: name = "Coastguard"; break;
case 473: name = "Dinghy"; break;
case 474: name = "Hermes"; break;
case 475: name = "Sabre"; break;
case 476: name = "Rustler"; break;
case 477: name = "ZR-350"; break;
case 478: name = "Walton"; break;
case 479: name = "Regina"; break;
case 480: name = "Comet"; break;
case 481: name = "BMX"; break;
case 482: name = "Burrito"; break;
case 483: name = "Camper"; break;
case 484: name = "Marquis"; break;
case 485: name = "Baggage"; break;
case 486: name = "Dozer"; break;
case 487: name = "Maverick"; break;
case 488: name = "SAN News Maverick"; break;
case 489: name = "Rancher"; break;
case 490: name = "FBI Rancher"; break;
case 491: name = "Virgo"; break;
case 492: name = "Greenwood"; break;
case 493: name = "Jetmax"; break;
case 494: name = "Hotring Racer"; break;
case 495: name = "Sandking"; break;
case 496: name = "Blista Compact"; break;
case 497: name = "Police Maverick"; break;
case 498: name = "Boxville"; break;
case 499: name = "Benson"; break;
case 500: name = "Mesa"; break;
case 501: name = "RC Goblin"; break;
case 502: name = "Hotring Racer"; break;
case 503: name = "Hotring Racer"; break;
case 504: name = "Bloodring Banger"; break;
case 505: name = "Rancher"; break;
case 506: name = "Super GT"; break;
case 507: name = "Elegant"; break;
case 508: name = "Journey"; break;
case 509: name = "Bike"; break;
case 510: name = "Mountain Bike"; break;
case 511: name = "Beagle"; break;
case 512: name = "Cropduster"; break;
case 513: name = "Stuntplane"; break;
case 514: name = "Tanker"; break;
case 515: name = "Roadtrain"; break;
case 516: name = "Nebula"; break;
case 517: name = "Majestic"; break;
case 518: name = "Buccaneer"; break;
case 519: name = "Shamal"; break;
case 520: name = "Hydra"; break;
case 521: name = "FCR-900"; break;
case 522: name = "NRG-500"; break;
case 523: name = "HPV1000"; break;
case 524: name = "Cement Truck"; break;
case 525: name = "Towtruck"; break;
case 526: name = "Fortune"; break;
case 527: name = "Cadrona"; break;
case 528: name = "FBI Truck"; break;
case 529: name = "Willard"; break;
case 530: name = "Forklift"; break;
case 531: name = "Tractor"; break;
case 532: name = "Combine Harvester"; break;
case 533: name = "Feltzer"; break;
case 534: name = "Remington"; break;
case 535: name = "Slamvan"; break;
case 536: name = "Blade"; break;
case 537: name = "Freight"; break;
case 538: name = "Brownstreak"; break;
case 539: name = "Vortex"; break;
case 540: name = "Vincent"; break;
case 541: name = "Bullet"; break;
case 542: name = "Clover"; break;
case 543: name = "Sadler"; break;
case 544: name = "Firetruck LA"; break;
case 545: name = "Hustler"; break;
case 546: name = "Intruder"; break;
case 547: name = "Primo"; break;
case 548: name = "Cargobob"; break;
case 549: name = "Tampa"; break;
case 550: name = "Sunrise"; break;
case 551: name = "Merit"; break;
case 552: name = "Utility Van"; break;
case 553: name = "Nevada"; break;
case 554: name = "Yosemite"; break;
case 555: name = "Windsor"; break;
case 556: name = "Monster A"; break;
case 557: name = "Monster B"; break;
case 558: name = "Uranus"; break;
case 559: name = "Jester"; break;
case 560: name = "Sultan"; break;
case 561: name = "Stratum"; break;
case 562: name = "Elegy"; break;
case 563: name = "Raindance"; break;
case 564: name = "RC Tiger"; break;
case 565: name = "Flash"; break;
case 566: name = "Tahoma"; break;
case 567: name = "Savanna"; break;
case 568: name = "Bandito"; break;
case 569: name = "Freight Flat Trailer"; break;
case 570: name = "Streak Trailer"; break;
case 571: name = "Kart"; break;
case 572: name = "Mower"; break;
case 573: name = "Dune"; break;
case 574: name = "Sweeper"; break;
case 575: name = "Broadway"; break;
case 576: name = "Tornado"; break;
case 577: name = "AT400"; break;
case 578: name = "DFT-30"; break;
case 579: name = "Huntley"; break;
case 580: name = "Stafford"; break;
case 581: name = "BF-400"; break;
case 582: name = "Newsvan"; break;
case 583: name = "Tug"; break;
case 584: name = "Petrol Trailer"; break;
case 585: name = "Emperor"; break;
case 586: name = "Wayfarer"; break;
case 587: name = "Euros"; break;
case 588: name = "Hotdog"; break;
case 589: name = "Club"; break;
case 590: name = "Freight Box Trailer"; break;
case 591: name = "Article Trailer 3"; break;
case 592: name = "Andromada"; break;
case 593: name = "Dodo"; break;
case 594: name = "RC Cam"; break;
case 595: name = "Launch"; break;
case 596: name = "Police Car (LSPD)"; break;
case 597: name = "Police Car (SFPD)"; break;
case 598: name = "Police Car (LVPD)"; break;
case 599: name = "Police Ranger"; break;
case 600: name = "Picador"; break;
case 601: name = "Police SF."; break;
case 602: name = "Alpha"; break;
case 603: name = "Phoenix"; break;
case 604: name = "Glendale Shit"; break;
case 605: name = "Sadler Shit"; break;
case 606: name = "Baggage Trailer A"; break;
case 607: name = "Baggage Trailer B"; break;
case 608: name = "Tug Stairs Trailer"; break;
case 609: name = "Boxville"; break;
case 610: name = "Farm Trailer"; break;
case 611: name = "Utility Trailer"; break;
case 612: name = "Mercedes Benz GT63"; break;
case 613: name = "Mercedes Benz G63 AMG"; break;
case 614: name = "Audi RS6"; break;
case 662: name = "BMW X5"; break;
case 663: name = "Chevrolet Corvette"; break;
case 665: name = "Chevrolete Cruze"; break;
case 666: name = "Lexus LX570"; break;
case 667: name = "Porsche 911"; break;
case 668: name = "Porcshe Cayenne"; break;
case 669: name = "Bentley Continental GT"; break;
case 793: name = "BMW M8"; break;
case 794: name = "Mercedes E63S W213"; break;
case 909: name = "Mercedes S63"; break;
case 965: name = "Volkswagen Tuareg"; break;
case 1194: name = "Lamborghini Urus"; break;
case 195: name = "Audi Q8"; break;
case 1196: name = "Dodge Challenger"; break;
case 1197: name = "Arura NSX"; break;
case 1198: name = "Volvo V60"; break;
case 1199: name = "Range Rover"; break;
case 1200: name = "Honda Civic"; break;
case 1201: name = "Lexus ES"; break;
case 1202: name = "Mustang GT"; break;
case 1203: name = "Volvo XC"; break;
case 1204: name = "Jaguar F-Pace"; break;
case 1205: name = "Kia Optima"; break;
case 3155: name = "BMW Z4"; break;
case 3156: name = "Mercedes Benz W1400 S600"; break;
case 3157: name = "BMW X5 old"; break;
case 3158: name = "Lexus RX 450H"; break;
case 3206: name = "Lamborghini Aventador"; break;
case 3207: name = "Landsva"; break;
case 3208: name = "BMW 530i"; break;
case 3210: name = "Tesla Model-X"; break;
case 3211: name = "Nissan Leaf"; break;
case 3212: name = "Nissan silvia"; break;
case 3213: name = "Sbforest"; break;
case 3215: name = "Sblegasy"; break;
case 3216: name = "Hyundai Sonata"; break;
case 3217: name = "BMW E38"; break;
case 3218: name = "Mercedes Benz E55"; break;
case 3219: name = "Mercedes Benz E500"; break;
case 3220: name = "Jstorm"; break;
case 3223: name = "Mater"; break;
case 3205: name = "Vehicle"; break;
case 3204: name = "New car"; break;
case 3203: name = "Fiat 500"; break;
case 3202: name = "Bugatti Chiron"; break;
case 3200: name = "Bentley"; break;
case 3224: name = "Buckingham"; break;
case 3232: name = "Nnfinity"; break;
case 3233: name = "Lexus RX"; break;
case 3234: name = "KIA Sportage"; break;
case 3235: name = "Volkswagen Golf"; break;
case 3236: name = "Audi R8"; break;
case 3237: name = "Camry v1"; break;
case 3238: name = "Camry v2"; break;
case 3239: name = "BMW M5 E60"; break;
case 3240: name = "BMW M5 F90"; break;
case 3245: name = "Mercedes Benz Maybach"; break;
case 3247: name = "Mbam GGT"; break;
case 3248: name = "Panamera"; break;
case 3251: name = "Passat"; break;
case 3254: name = "Chevrolet Corvett 1980"; break;
case 3266: name = "Dodge SRT"; break;
case 3194: name = "Diavel"; break;
case 3195: name = "Ducati"; break;
case 3196: name = "Ducnaked"; break;
case 3197: name = "ZX10RR"; break;
case 3198: name = "Western"; break;
case 3201: name = "Bugatti Divo"; break;
case 3222: name = "Lightning McQueen"; break;
case 3199: name = "Rolls Royce"; break;
default: name = "Unknown"; break;
}
return name;
}
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7118) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 022: must be lvalue (non-constant)
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 036: empty statement
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : error 024: "break" or "continue" is out of context
C:\Games\Prime Role Play 2023\gamemodes\new.pwn(7122) : fatal error 107: too many error messages on one line
Последнее редактирование модератором: