Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <a_samp>
 - static const VehicleNames[212][] =
 - {
 - "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perennial", "Sentinel",
 - "Dumper", "Firetruck" , "Trashmaster" , "Stretch", "Manana", "Infernus",
 - "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
 - "Esperanto", "Taxi", "Washington", "Bobcat", "Mr 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",
 - "Squallo", "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", "Hotring Racer", "Bloodring Banger", "Rancher", "Super GT",
 - "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stuntplane",
 - "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 Truck", "Nevada", "Yosemite", "Windsor", "Monster",
 - "Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RCTiger",
 - "Flash","Tahoma","Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower",
 - "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley",
 - "Stafford", "BF-400", "Newsvan","Tug","Trailer","Emperor","Wayfarer","Euros",
 - "Hotdog", "Club", "Trailer", "Trailer","Andromada","Dodo","RC Cam", "Launch",
 - "Police Car LSPD", "Police Car SFPD","Police Car LVPD","Police Ranger",
 - "Picador", "S.W.A.T. Van", "Alpha", "Phoenix", "Glendale", "Sadler",
 - "Luggage Trailer","Luggage Trailer","Stair Trailer", "Boxville", "Farm Plow",
 - "Utility Trailer"
 - };
 - enum MyEnum
 - {
 - MyString[13]
 - }
 - new MyEnumData[1][MyEnum];
 - main()
 - {
 - //===============================Bug1=======================================
 - //This also crash with the compiler that comes with the sa-mp server download
 - new a, b;
 - format(MyEnumData[0][MyString], 13, "Hello %s", "World!");
 - //Crash | THIS IS CRASHING IT |
 - printf("The output is: %s", (a != b ? MyEnumData[0][MyString] : "Unknown"));
 - //===============================Bug2=======================================
 - //This works with the compiler that comes with the sa-mp server download
 - printf("The vehicle name is: %s", VehicleNames[23]); //Should print "Mr Whoopee", but prints "Landstalker" no matter what ID I put in
 - return true;
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment