26.06.2018, 10:44
Hey I've, got a problem with my dialog, this is my following code:
The script compiles fine, however when I go ingame, the dialog doesn't show anymore cars after the Police Car (SFPD) if i'm correct. The "{FFFFFF}" are here on purpose, i need to add some more text after the car names using another color later. I'm willing to make my list even bigger, with all the remaining vehicles, however I have no idea how to fix the problem...
Thanks for your help
PHP код:
new vehicles[9000];
strcat(vehicles, "{FFFFFF}Admiral \n{FFFFFF}Alpha \n{FFFFFF}Ambulance\n{FFFFFF}Baggage \n{FFFFFF}Bandito \n{FFFFFF}Banshee \n{FFFFFF}Barracks \n{FFFFFF}Beagle \n{FFFFFF}Benson \n{FFFFFF}BF-400 ");
strcat(vehicles, "\n{FFFFFF}BF Injection \n{FFFFFF}Bike \n{FFFFFF}Blade \n{FFFFFF}Blista Compact \n{FFFFFF}Bloodring Banger \n{FFFFFF}BMX \n{FFFFFF}Bobcat \n{FFFFFF}Boxville \n{FFFFFF}Bravura \n{FFFFFF}Broadway \n{FFFFFF}Buccaneer \n{FFFFFF}Buffalo ");
strcat(vehicles, "\n{FFFFFF}Bullet \n{FFFFFF}Burrito \n{FFFFFF}Bus \n{FFFFFF}Cabbie \n{FFFFFF}Caddy \n{FFFFFF}Cadrona \n{FFFFFF}Camper \n{FFFFFF}Cargobob \n{FFFFFF}Cement Truck \n{FFFFFF}Cheetah \n{FFFFFF}Clover \n{FFFFFF}Club ");
strcat(vehicles, "\n{FFFFFF}Coach \n{FFFFFF}Coastguard \n{FFFFFF}Combine Harvester \n{FFFFFF}Comet \n{FFFFFF}Cropduster \n{FFFFFF}DFT-30 \n{FFFFFF}Dinghy \n{FFFFFF}Dodo \n{FFFFFF}Dozer \n{FFFFFF}Dumper \n{FFFFFF}Dune \n{FFFFFF}Elegant ");
strcat(vehicles, "\n{FFFFFF}Elegy \n{FFFFFF}Emperor \n{FFFFFF}Enforcer \n{FFFFFF}Esperanto \n{FFFFFF}Euros \n{FFFFFF}Faggio \n{FFFFFF}FBI Rancher \n{FFFFFF}FBI Truck ");
strcat(vehicles, "\n{FFFFFF}FCR-900 \n{FFFFFF}Feltzer \n{FFFFFF}Firetruck\n{FFFFFF}Flash \n{FFFFFF}Flatbed \n{FFFFFF}Forklift \n{FFFFFF}Fortune \n{FFFFFF}Freeway \n{FFFFFF}Glendale \n{FFFFFF}Greenwood ");
strcat(vehicles, "\n{FFFFFF}Hermes \n{FFFFFF}Hotdog \n{FFFFFF}Hotknife \n{FFFFFF}Hotring Racer \n{FFFFFF}Hotring Racer A \n{FFFFFF}Hotring Racer B \n{FFFFFF}HPV-1000 \n{FFFFFF}Hunter \n{FFFFFF}Huntley \n{FFFFFF}Hustler \n{FFFFFF}Hydra \n{FFFFFF}Infernus ");
strcat(vehicles, "\n{FFFFFF}Intruder \n{FFFFFF}Jester \n{FFFFFF}Jetmax \n{FFFFFF}Journey \n{FFFFFF}Kart \n{FFFFFF}Landstalker \n{FFFFFF}Launch \n{FFFFFF}Leviathan \n{FFFFFF}Linerunner \n{FFFFFF}Majestic \n{FFFFFF}Manana \n{FFFFFF}Marquis ");
strcat(vehicles, "\n{FFFFFF}Maverick \n{FFFFFF}Merit \n{FFFFFF}Mesa \n{FFFFFF}Monster \n{FFFFFF}Monster A \n{FFFFFF}Monster B \n{FFFFFF}Moonbeam \n{FFFFFF}Mower \n{FFFFFF}Mr. Whoopee \n{FFFFFF}Mule \n{FFFFFF}Nebula \n{FFFFFF}Nevada ");
strcat(vehicles, "\n{FFFFFF}Newsvan \n{FFFFFF}NRG-500 \n{FFFFFF}Oceanic \n{FFFFFF}Packer \n{FFFFFF}Patriot \n{FFFFFF}PCJ-600 \n{FFFFFF}Perennial \n{FFFFFF}Phoenix \n{FFFFFF}Picador \n{FFFFFF}Pizzaboy \n{FFFFFF}Police Car (LSPD) ");
strcat(vehicles, "\n{FFFFFF}Police Car (LVPD)\n{FFFFFF}Police Car (SFPD) \n{FFFFFF}Police Maverick \n{FFFFFF}Police Ranger ");
strcat(vehicles, "\n{FFFFFF}Pony \n{FFFFFF}Perdator \n{FFFFFF}Premier \n{FFFFFF}Previon \n{FFFFFF}Primo \n{FFFFFF}Quadbike \n{FFFFFF}Raindance \n{FFFFFF}Rancher \n{FFFFFF}Reefer \n{FFFFFF}Regina ");
ShowPlayerDialog(playerid, DIALOG_SHOPVEHICLES,DIALOG_STYLE_LIST, "{FFFFFF}Game Shop" , vehicles, "Select", "Close");
Thanks for your help