Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * [url]http://www.mozilla.org/MPL/[/url]
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the sscanf 2.0 SA:MP plugin.
- *
- * The Initial Developer of the Original Code is Alex "Y_Less" Cole.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Special Thanks to:
- *
- * SA:MP Team past, present and future
- */
- #define SSCANF:%0(%1) sscanf_%0(%1);public sscanf_%0(%1)
- #if defined sscanf
- #error sscanf (possibly the PAWN version) already defined.
- #endif
- native sscanf(const data[], const format[], {Float,_}:...);
- native unformat(const data[], const format[], {Float,_}:...) = sscanf;
- native SSCANF_Init(players, invalid, len);
- native SSCANF_Join(playerid, const name[], npc);
- native SSCANF_Leave(playerid);
- native SSCANF_Option(const name[], value);
- stock const
- SSCANF_QUIET[] = "SSCANF_QUIET",
- OLD_DEFAULT_NAME[] = "OLD_DEFAULT_NAME",
- MATCH_NAME_PARTIAL[] = "MATCH_NAME_PARTIAL",
- CELLMIN_ON_MATCHES[] = "CELLMIN_ON_MATCHES",
- OLD_DEFAULT_KUSTOM[] = "OLD_DEFAULT_KUSTOM",
- OLD_DEFAULT_CUSTOM[] = "OLD_DEFAULT_CUSTOM";
- static stock
- bool:SSCANF_gInit = false;
- #if !defined _ALS_
- forward public _ALS_();
- _ALS_() <_ALS_:unhooked>
- {
- }
- _ALS_() <_ALS_:hooked>
- {
- }
- _ALS_() <>
- {
- }
- #endif
- /*
- OnFilterScriptInit
- Called when the script starts if it is a filterscript, sets up the system,
- then calls the "real" OnFilterScriptInit (using the new ALS 2 hook method).
- */
- public OnFilterScriptInit()
- {
- SSCANF_Init(GetMaxPlayers(), INVALID_PLAYER_ID, MAX_PLAYER_NAME);
- SSCANF_gInit = true;
- state _ALS_:hooked;
- return SSCANF_OnFilterScriptInit();
- }
- #if defined _ALS_OnFilterScriptInit
- #undef OnFilterScriptInit
- #else
- #define _ALS_OnFilterScriptInit
- #endif
- #define OnFilterScriptInit(%0) SSCANF_OnFilterScriptInit(%0) <_ALS_:hooked>
- forward SSCANF_OnFilterScriptInit();
- public SSCANF_OnFilterScriptInit() <_ALS_:unhooked>
- {
- return 1;
- }
- public SSCANF_OnFilterScriptInit() <>
- {
- return 1;
- }
- /*
- OnGameModeInit
- Called when the script starts if it is a gamemode. This callback is also
- called in filterscripts so we don't want to reinitialise the system in that
- case.
- */
- public OnGameModeInit()
- {
- if (!SSCANF_gInit)
- {
- SSCANF_Init(GetMaxPlayers(), INVALID_PLAYER_ID, MAX_PLAYER_NAME);
- SSCANF_gInit = true;
- state _ALS_:hooked;
- }
- return SSCANF_OnGameModeInit();
- }
- #if defined _ALS_OnGameModeInit
- #undef OnGameModeInit
- #else
- #define _ALS_OnGameModeInit
- #endif
- #define OnGameModeInit(%0) SSCANF_OnGameModeInit(%0) <_ALS_:hooked>
- forward SSCANF_OnGameModeInit();
- public SSCANF_OnGameModeInit() <_ALS_:unhooked>
- {
- return 1;
- }
- public SSCANF_OnGameModeInit() <>
- {
- return 1;
- }
- /*
- OnPlayerConnect
- Called when a player connects. Actually increments an internal count so that
- if a script ends and "OnPlayerDisconnect" is called then "sscanf" still knows
- that the player is really connected. Also stores their name internally.
- */
- public OnPlayerConnect(playerid)
- {
- new
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof (name));
- SSCANF_Join(playerid, name, IsPlayerNPC(playerid));
- return SSCANF_OnPlayerConnect(playerid);
- }
- #if defined _ALS_OnPlayerConnect
- #undef OnPlayerConnect
- #else
- #define _ALS_OnPlayerConnect
- #endif
- #define OnPlayerConnect(%0) SSCANF_OnPlayerConnect(%0) <_ALS_:hooked>
- forward SSCANF_OnPlayerConnect(playerid);
- public SSCANF_OnPlayerConnect(playerid) <_ALS_:unhooked>
- {
- return 1;
- }
- public SSCANF_OnPlayerConnect(playerid) <>
- {
- return 1;
- }
- /*
- OnPlayerDisconnect
- Called when a player disconnects, or when a script is ended.
- */
- public OnPlayerDisconnect(playerid, reason)
- {
- new
- ret = SSCANF_OnPlayerDisconnect(playerid, reason);
- SSCANF_Leave(playerid);
- return ret;
- }
- #if defined _ALS_OnPlayerDisconnect
- #undef OnPlayerDisconnect
- #else
- #define _ALS_OnPlayerDisconnect
- #endif
- #define OnPlayerDisconnect(%0) SSCANF_OnPlayerDisconnect(%0) <_ALS_:hooked>
- forward SSCANF_OnPlayerDisconnect(playerid, reason);
- public SSCANF_OnPlayerDisconnect(playerid, reason) <_ALS_:unhooked>
- {
- return 1;
- }
- public SSCANF_OnPlayerDisconnect(playerid, reason) <>
- {
- return 1;
- }
- #define SSCANF_Init
- #define SSCANF_Join
- #define SSCANF_Leave
- #define extract%0->%1; EXTRN%1;unformat(_:EXTRZ:EXTRV:EXTRX:%0,##,%1,,);
- #define unformat(_:EXTRZ:EXTRV:EXTRX:%0,##,%1);%2else if (unformat(_:EXTRV:EXTRX:%0,##,%1))
- #define EXTRV:EXTRX:%0<%3>##,%9new%1,%2) EXTRY:%0##P<%3>,|||%1|||%2)
- #define EXTRX:%0##,%9new%1,%2) EXTRY:%0##,|||%1|||%2)
- #define EXTRY: EXTR8:EXTR9:EXTR0:EXTR1:EXTR2:EXTR3:EXTR4:
- #define EXTR8:EXTR9:EXTR0:EXTR1:EXTR2:EXTR3:EXTR4:%0##%1,%2|||%6:%3=%9|||%4) %6_EXTRO:%0##%1,%2|||%3=%9|||%4)
- #define EXTR9:EXTR0:EXTR1:EXTR2:EXTR3:EXTR4:%0##%1,%2|||%3=%9|||%4) __EXTRO:%0##%1,%2|||%3=%9|||%4)
- #define EXTR0:EXTR1:EXTR2:EXTR3:EXTR4:%0##%1,%2|||%6:%3[%7]|||%4) %6_EXTRW:%0##%1,%2|||%3[%7]|||%4)
- #define EXTR1:EXTR2:EXTR3:EXTR4:%0##%1,%2|||%3[%7]|||%4) __EXTRW:%0##%1,%2|||%3|||%4)
- #define EXTR2:EXTR3:EXTR4:%0##%1,%2|||%6:%3|||%4) %6_EXTRN:%0##%1,%2|||%3|||%4)
- #define EXTR3:EXTR4:%0##%1,,%2||||||%4) %0##%1,%2)
- #define EXTR4:%0##%1,%2|||%3|||%4) __EXTRN:%0##%1,%2|||%3|||%4)
- // Optional specifiers.
- #define __EXTRO:%0##%1,%2|||%3=%9|||%4,%5) EXTRY:%0##%1I"("#%9")"#,%2,%3|||%4|||%5)
- #define Float_EXTRO:%0##%1,%2|||%3=%9|||%4,%5) EXTRY:%0##%1F"("#%9")"#,%2,%3|||%4|||%5)
- #define player_EXTRO:%0##%1,%2|||%3=%9|||%4,%5) EXTRY:%0##%1U"("#%9")"#,%2,%3|||%4|||%5)
- #define string_EXTRO:%0##%1,%2|||%3[%7]=%9|||%4,%5) EXTRY:%0##%1S"("#%9")"#[%7],%2,%3|||%4|||%5)
- // Normal specifiers (the double underscore is to work for "_:".
- #define __EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1i,%2,%3|||%4|||%5)
- #define Float_EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1f,%2,%3|||%4|||%5)
- #define player_EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1u,%2,%3|||%4|||%5)
- //#define string_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1s[%7],%2,%3|||%4|||%5)
- // Array versions of normal specifiers.
- #define __EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<i>[%7],%2,%3|||%4|||%5)
- #define Float_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<f>[%7],%2,%3|||%4|||%5)
- #define player_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<u>[%7],%2,%3|||%4|||%5)
- #define string_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1s[%7],%2,%3|||%4|||%5)
- // Get rid of excess leading space which causes warnings.
- #define EXTRN%0new%1; new%1;
- #if !defined string
- #define string:
- #endif
- #define player:
- #define hex:
- #define hex_EXTRO:%0##%1,%2|||%3=%9|||%4,%5) EXTRY:%0##%1H"("#%9")"#,%2,%3|||%4|||%5)
- #define hex_EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1h,%2,%3|||%4|||%5)
- #define hex_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<h>[%7],%2,%3|||%4|||%5)
- #define bin:
- #define bin_EXTRO:%0##%1,%2|||%3=%9|||%4,%5) EXTRY:%0##%1B"("#%9")"#,%2,%3|||%4|||%5)
- #define bin_EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1b,%2,%3|||%4|||%5)
- #define bin_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<b>[%7],%2,%3|||%4|||%5)
- #define kustom:%0<%1> %0
- #define kustom_EXTRO:%0##%1,%2|||%3<%8>=%9|||%4,%5) EXTRY:%0##%1K<%8>"("#%9")"#,%2,%3|||%4|||%5)
- #define kustom_EXTRN:%0##%1,%2|||%3<%8>|||%4,%5) EXTRY:%0##%1k<%8>,%2,%3|||%4|||%5)
- //#define bin_EXTRW:%0##%1,%2|||%3[%7]|||%4,%5) EXTRY:%0##%1a<b>[%7],%2,%3|||%4|||%5)
- SSCANF:weapon(string3[])
- {
- // This function is VERY basic, needs VASTLY improving to detect variations.
- if ('0' <= string3[0] <= '9')
- {
- new
- ret = strval(string3);
- if (0 <= ret <= 18 || 22 <= ret <= 46)
- {
- return ret;
- }
- }
- else if (!strcmp(string3, "Unarmed")) return 0;
- else if (!strcmp(string3, "Brass Knuckles")) return 1;
- else if (!strcmp(string3, "Golf Club")) return 2;
- else if (!strcmp(string3, "Night Stick")) return 3;
- else if (!strcmp(string3, "Knife")) return 4;
- else if (!strcmp(string3, "Baseball Bat")) return 5;
- else if (!strcmp(string3, "Shovel")) return 6;
- else if (!strcmp(string3, "Pool cue")) return 7;
- else if (!strcmp(string3, "Katana")) return 8;
- else if (!strcmp(string3, "Chainsaw")) return 9;
- else if (!strcmp(string3, "Purple Dildo")) return 10;
- else if (!strcmp(string3, "White Dildo")) return 11;
- else if (!strcmp(string3, "Long White Dildo")) return 12;
- else if (!strcmp(string3, "White Dildo 2")) return 13;
- else if (!strcmp(string3, "Flowers")) return 14;
- else if (!strcmp(string3, "Cane")) return 15;
- else if (!strcmp(string3, "Grenades")) return 16;
- else if (!strcmp(string3, "Tear Gas")) return 17;
- else if (!strcmp(string3, "Molotovs")) return 18;
- else if (!strcmp(string3, "Pistol")) return 22;
- else if (!strcmp(string3, "Silenced Pistol")) return 23;
- else if (!strcmp(string3, "Desert Eagle")) return 24;
- else if (!strcmp(string3, "Shotgun")) return 25;
- else if (!strcmp(string3, "Sawn Off Shotgun")) return 26;
- else if (!strcmp(string3, "Combat Shotgun")) return 27;
- else if (!strcmp(string3, "Micro Uzi")) return 28;
- else if (!strcmp(string3, "Mac 10")) return 28;
- else if (!strcmp(string3, "MP5")) return 29;
- else if (!strcmp(string3, "AK47")) return 30;
- else if (!strcmp(string3, "M4")) return 31;
- else if (!strcmp(string3, "Tec9")) return 32;
- else if (!strcmp(string3, "Rifle")) return 33;
- else if (!strcmp(string3, "Sniper Rifle")) return 34;
- else if (!strcmp(string3, "RPG")) return 35;
- else if (!strcmp(string3, "Missile Launcher")) return 36;
- else if (!strcmp(string3, "Flame Thrower")) return 37;
- else if (!strcmp(string3, "Minigun")) return 38;
- else if (!strcmp(string3, "Sachel Charges")) return 39;
- else if (!strcmp(string3, "Detonator")) return 40;
- else if (!strcmp(string3, "Spray Paint")) return 41;
- else if (!strcmp(string3, "Fire Extinguisher")) return 42;
- else if (!strcmp(string3, "Camera")) return 43;
- else if (!strcmp(string3, "Nightvision Goggles")) return 44;
- else if (!strcmp(string3, "Thermal Goggles")) return 45;
- else if (!strcmp(string3, "Parachute")) return 46;
- return -1;
- }
- SSCANF:vehicle(string4[])
- {
- // This function is VERY basic, needs VASTLY improving to detect variations.
- if ('0' <= string4[0] <= '9')
- {
- new
- ret = strval(string4);
- if (400 <= ret <= 611)
- {
- return ret;
- }
- }
- else if (!strcmp(string4, "Landstalker")) return 400;
- else if (!strcmp(string4, "Bravura")) return 401;
- else if (!strcmp(string4, "Buffalo")) return 402;
- else if (!strcmp(string4, "Linerunner")) return 403;
- else if (!strcmp(string4, "Perenniel")) return 404;
- else if (!strcmp(string4, "Sentinel")) return 405;
- else if (!strcmp(string4, "Dumper")) return 406;
- else if (!strcmp(string4, "Firetruck")) return 407;
- else if (!strcmp(string4, "Trashmaster")) return 408;
- else if (!strcmp(string4, "Stretch")) return 409;
- else if (!strcmp(string4, "Manana")) return 410;
- else if (!strcmp(string4, "Infernus")) return 411;
- else if (!strcmp(string4, "Voodoo")) return 412;
- else if (!strcmp(string4, "Pony")) return 413;
- else if (!strcmp(string4, "Mule")) return 414;
- else if (!strcmp(string4, "Cheetah")) return 415;
- else if (!strcmp(string4, "Ambulance")) return 416;
- else if (!strcmp(string4, "Leviathan")) return 417;
- else if (!strcmp(string4, "Moonbeam")) return 418;
- else if (!strcmp(string4, "Esperanto")) return 419;
- else if (!strcmp(string4, "Taxi")) return 420;
- else if (!strcmp(string4, "Washington")) return 421;
- else if (!strcmp(string4, "Bobcat")) return 422;
- else if (!strcmp(string4, "Mr Whoopee")) return 423;
- else if (!strcmp(string4, "BF Injection")) return 424;
- else if (!strcmp(string4, "Hunter")) return 425;
- else if (!strcmp(string4, "Premier")) return 426;
- else if (!strcmp(string4, "Enforcer")) return 427;
- else if (!strcmp(string4, "Securicar")) return 428;
- else if (!strcmp(string4, "Banshee")) return 429;
- else if (!strcmp(string4, "Predator")) return 430;
- else if (!strcmp(string4, "Bus")) return 431;
- else if (!strcmp(string4, "Rhino")) return 432;
- else if (!strcmp(string4, "Barracks")) return 433;
- else if (!strcmp(string4, "Hotknife")) return 434;
- else if (!strcmp(string4, "Article Trailer")) return 435;
- else if (!strcmp(string4, "Previon")) return 436;
- else if (!strcmp(string4, "Coach")) return 437;
- else if (!strcmp(string4, "Cabbie")) return 438;
- else if (!strcmp(string4, "Stallion")) return 439;
- else if (!strcmp(string4, "Rumpo")) return 440;
- else if (!strcmp(string4, "RC Bandit")) return 441;
- else if (!strcmp(string4, "Romero")) return 442;
- else if (!strcmp(string4, "Packer")) return 443;
- else if (!strcmp(string4, "Monster")) return 444;
- else if (!strcmp(string4, "Admiral")) return 445;
- else if (!strcmp(string4, "Squallo")) return 446;
- else if (!strcmp(string4, "Seasparrow")) return 447;
- else if (!strcmp(string4, "Pizzaboy")) return 448;
- else if (!strcmp(string4, "Tram")) return 449;
- else if (!strcmp(string4, "Article Trailer 2")) return 450;
- else if (!strcmp(string4, "Turismo")) return 451;
- else if (!strcmp(string4, "Speeder")) return 452;
- else if (!strcmp(string4, "Reefer")) return 453;
- else if (!strcmp(string4, "Tropic")) return 454;
- else if (!strcmp(string4, "Flatbed")) return 455;
- else if (!strcmp(string4, "Yankee")) return 456;
- else if (!strcmp(string4, "Caddy")) return 457;
- else if (!strcmp(string4, "Solair")) return 458;
- else if (!strcmp(string4, "Berkley's RC Van")) return 459;
- else if (!strcmp(string4, "Skimmer")) return 460;
- else if (!strcmp(string4, "PCJ-600")) return 461;
- else if (!strcmp(string4, "Faggio")) return 462;
- else if (!strcmp(string4, "Freeway")) return 463;
- else if (!strcmp(string4, "RC Baron")) return 464;
- else if (!strcmp(string4, "RC Raider")) return 465;
- else if (!strcmp(string4, "Glendale")) return 466;
- else if (!strcmp(string4, "Oceanic")) return 467;
- else if (!strcmp(string4, "Sanchez")) return 468;
- else if (!strcmp(string4, "Sparrow")) return 469;
- else if (!strcmp(string4, "Patriot")) return 470;
- else if (!strcmp(string4, "Quad")) return 471;
- else if (!strcmp(string4, "Coastguard")) return 472;
- else if (!strcmp(string4, "Dinghy")) return 473;
- else if (!strcmp(string4, "Hermes")) return 474;
- else if (!strcmp(string4, "Sabre")) return 475;
- else if (!strcmp(string4, "Rustler")) return 476;
- else if (!strcmp(string4, "ZR-350")) return 477;
- else if (!strcmp(string4, "Walton")) return 478;
- else if (!strcmp(string4, "Regina")) return 479;
- else if (!strcmp(string4, "Comet")) return 480;
- else if (!strcmp(string4, "BMX")) return 481;
- else if (!strcmp(string4, "Burrito")) return 482;
- else if (!strcmp(string4, "Camper")) return 483;
- else if (!strcmp(string4, "Marquis")) return 484;
- else if (!strcmp(string4, "Baggage")) return 485;
- else if (!strcmp(string4, "Dozer")) return 486;
- else if (!strcmp(string4, "Maverick")) return 487;
- else if (!strcmp(string4, "SAN News Maverick")) return 488;
- else if (!strcmp(string4, "Rancher")) return 489;
- else if (!strcmp(string4, "FBI Rancher")) return 490;
- else if (!strcmp(string4, "Virgo")) return 491;
- else if (!strcmp(string4, "Greenwood")) return 492;
- else if (!strcmp(string4, "Jetmax")) return 493;
- else if (!strcmp(string4, "Hotring Racer")) return 494;
- else if (!strcmp(string4, "Sandking")) return 495;
- else if (!strcmp(string4, "Blista Compact")) return 496;
- else if (!strcmp(string4, "Police Maverick")) return 497;
- else if (!strcmp(string4, "Boxville")) return 498;
- else if (!strcmp(string4, "Benson")) return 499;
- else if (!strcmp(string4, "Mesa")) return 500;
- else if (!strcmp(string4, "RC Goblin")) return 501;
- else if (!strcmp(string4, "Hotring Racer")) return 502;
- else if (!strcmp(string4, "Hotring Racer")) return 503;
- else if (!strcmp(string4, "Bloodring Banger")) return 504;
- else if (!strcmp(string4, "Rancher")) return 505;
- else if (!strcmp(string4, "Super GT")) return 506;
- else if (!strcmp(string4, "Elegant")) return 507;
- else if (!strcmp(string4, "Journey")) return 508;
- else if (!strcmp(string4, "Bike")) return 509;
- else if (!strcmp(string4, "Mountain Bike")) return 510;
- else if (!strcmp(string4, "Beagle")) return 511;
- else if (!strcmp(string4, "Cropduster")) return 512;
- else if (!strcmp(string4, "Stuntplane")) return 513;
- else if (!strcmp(string4, "Tanker")) return 514;
- else if (!strcmp(string4, "Roadtrain")) return 515;
- else if (!strcmp(string4, "Nebula")) return 516;
- else if (!strcmp(string4, "Majestic")) return 517;
- else if (!strcmp(string4, "Buccaneer")) return 518;
- else if (!strcmp(string4, "Shamal")) return 519;
- else if (!strcmp(string4, "Hydra")) return 520;
- else if (!strcmp(string4, "FCR-900")) return 521;
- else if (!strcmp(string4, "NRG-500")) return 522;
- else if (!strcmp(string4, "HPV1000")) return 523;
- else if (!strcmp(string4, "Cement Truck")) return 524;
- else if (!strcmp(string4, "Towtruck")) return 525;
- else if (!strcmp(string4, "Fortune")) return 526;
- else if (!strcmp(string4, "Cadrona")) return 527;
- else if (!strcmp(string4, "FBI Truck")) return 528;
- else if (!strcmp(string4, "Willard")) return 529;
- else if (!strcmp(string4, "Forklift")) return 530;
- else if (!strcmp(string4, "Tractor")) return 531;
- else if (!strcmp(string4, "Combine Harvester")) return 532;
- else if (!strcmp(string4, "Feltzer")) return 533;
- else if (!strcmp(string4, "Remington")) return 534;
- else if (!strcmp(string4, "Slamvan")) return 535;
- else if (!strcmp(string4, "Blade")) return 536;
- else if (!strcmp(string4, "Freight (Train)")) return 537;
- else if (!strcmp(string4, "Brownstreak (Train)")) return 538;
- else if (!strcmp(string4, "Vortex")) return 539;
- else if (!strcmp(string4, "Vincent")) return 540;
- else if (!strcmp(string4, "Bullet")) return 541;
- else if (!strcmp(string4, "Clover")) return 542;
- else if (!strcmp(string4, "Sadler")) return 543;
- else if (!strcmp(string4, "Firetruck LA")) return 544;
- else if (!strcmp(string4, "Hustler")) return 545;
- else if (!strcmp(string4, "Intruder")) return 546;
- else if (!strcmp(string4, "Primo")) return 547;
- else if (!strcmp(string4, "Cargobob")) return 548;
- else if (!strcmp(string4, "Tampa")) return 549;
- else if (!strcmp(string4, "Sunrise")) return 550;
- else if (!strcmp(string4, "Merit")) return 551;
- else if (!strcmp(string4, "Utility Van")) return 552;
- else if (!strcmp(string4, "Nevada")) return 553;
- else if (!strcmp(string4, "Yosemite")) return 554;
- else if (!strcmp(string4, "Windsor")) return 555;
- else if (!strcmp(string4, "Monster \"A\"")) return 556;
- else if (!strcmp(string4, "Monster \"B\"")) return 557;
- else if (!strcmp(string4, "Uranus")) return 558;
- else if (!strcmp(string4, "Jester")) return 559;
- else if (!strcmp(string4, "Sultan")) return 560;
- else if (!strcmp(string4, "Stratum")) return 561;
- else if (!strcmp(string4, "Elegy")) return 562;
- else if (!strcmp(string4, "Raindance")) return 563;
- else if (!strcmp(string4, "RC Tiger")) return 564;
- else if (!strcmp(string4, "Flash")) return 565;
- else if (!strcmp(string4, "Tahoma")) return 566;
- else if (!strcmp(string4, "Savanna")) return 567;
- else if (!strcmp(string4, "Bandito")) return 568;
- else if (!strcmp(string4, "Freight Flat Trailer (Train)")) return 569;
- else if (!strcmp(string4, "Streak Trailer (Train)")) return 570;
- else if (!strcmp(string4, "Kart")) return 571;
- else if (!strcmp(string4, "Mower")) return 572;
- else if (!strcmp(string4, "Dune")) return 573;
- else if (!strcmp(string4, "Sweeper")) return 574;
- else if (!strcmp(string4, "Broadway")) return 575;
- else if (!strcmp(string4, "Tornado")) return 576;
- else if (!strcmp(string4, "AT400")) return 577;
- else if (!strcmp(string4, "DFT-30")) return 578;
- else if (!strcmp(string4, "Huntley")) return 579;
- else if (!strcmp(string4, "Stafford")) return 580;
- else if (!strcmp(string4, "BF-400")) return 581;
- else if (!strcmp(string4, "Newsvan")) return 582;
- else if (!strcmp(string4, "Tug")) return 583;
- else if (!strcmp(string4, "Petrol Trailer")) return 584;
- else if (!strcmp(string4, "Emperor")) return 585;
- else if (!strcmp(string4, "Wayfarer")) return 586;
- else if (!strcmp(string4, "Euros")) return 587;
- else if (!strcmp(string4, "Hotdog")) return 588;
- else if (!strcmp(string4, "Club")) return 589;
- else if (!strcmp(string4, "Freight Box Trailer (Train)")) return 590;
- else if (!strcmp(string4, "Article Trailer 3")) return 591;
- else if (!strcmp(string4, "Andromada")) return 592;
- else if (!strcmp(string4, "Dodo")) return 593;
- else if (!strcmp(string4, "RC Cam")) return 594;
- else if (!strcmp(string4, "Launch")) return 595;
- else if (!strcmp(string4, "Police Car (LSPD)")) return 596;
- else if (!strcmp(string4, "Police Car (SFPD)")) return 597;
- else if (!strcmp(string4, "Police Car (LVPD)")) return 598;
- else if (!strcmp(string4, "Police Ranger")) return 599;
- else if (!strcmp(string4, "Picador")) return 600;
- else if (!strcmp(string4, "S.W.A.T.")) return 601;
- else if (!strcmp(string4, "Alpha")) return 602;
- else if (!strcmp(string4, "Phoenix")) return 603;
- else if (!strcmp(string4, "Glendale Shit")) return 604;
- else if (!strcmp(string4, "Sadler Shit")) return 605;
- else if (!strcmp(string4, "Baggage Trailer \"A\"")) return 606;
- else if (!strcmp(string4, "Baggage Trailer \"B\"")) return 607;
- else if (!strcmp(string4, "Tug Stairs Trailer")) return 608;
- else if (!strcmp(string4, "Boxville")) return 609;
- else if (!strcmp(string4, "Farm Trailer")) return 610;
- else if (!strcmp(string4, "Utility Trailer")) return 611;
- return -1;
- }
- // Fix the compiler crash when both the PAWN and Plugin versions of sscanf are
- // found by renaming the old version at declaration. (fixes.inc compatible
- // naming scheme: "BAD_Function()").
- #define sscanf(%0:...) BAD_sscanf(%0:...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement