String lenght is too high
#4

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
You're missusing the {FFFFFF} that's the first thing, you should add it like this
PHP код:
"{FFFFFF}" 
Also if the text aint showing then probably its bec its more than the string (which is caused from the FFFFFF thingy, fix it and tell me if u got any other problem
Can you tell me how it is misused there?

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
This work, i'm just aligning and fixing the spaces & padding
Код:
new vehicles[2240];
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");
strcat(vehicles, "\n{FFFFFF}Broadway\n{FFFFFF}Buccaneer\n{FFFFFF}Buffalo\n{FFFFFF}Bullet\n{FFFFFF}Burrito\n{FFFFFF}Bus\n{FFFFFF}Cabbie\n{FFFFFF}Caddy\n{FFFFFF}Cadrona\n{FFFFFF}Camper");
strcat(vehicles, "\n{FFFFFF}Cargobob\n{FFFFFF}Cement Truck\n{FFFFFF}Cheetah\n{FFFFFF}Clover\n{FFFFFF}Club\n{FFFFFF}Coach\n{FFFFFF}Coastguard\n{FFFFFF}Combine Harvester\n{FFFFFF}Comet");
strcat(vehicles, "\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\n{FFFFFF}Elegy\n{FFFFFF}Emperor");
strcat(vehicles, "\n{FFFFFF}Enforcer\n{FFFFFF}Esperanto\n{FFFFFF}Euros\n{FFFFFF}Faggio\n{FFFFFF}FBI Rancher\n{FFFFFF}FBI Truck\n{FFFFFF}FCR-900\n{FFFFFF}Feltzer\n{FFFFFF}Firetruck");
strcat(vehicles, "\n{FFFFFF}Flash\n{FFFFFF}Flatbed\n{FFFFFF}Forklift\n{FFFFFF}Fortune\n{FFFFFF}Freeway\n{FFFFFF}Glendale\n{FFFFFF}Greenwood\n{FFFFFF}Hermes\n{FFFFFF}Hotdog");
strcat(vehicles, "\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");
strcat(vehicles, "\n{FFFFFF}Hydra\n{FFFFFF}Infernus\n{FFFFFF}Intruder\n{FFFFFF}Jester\n{FFFFFF}Jetmax\n{FFFFFF}Journey\n{FFFFFF}Kart\n{FFFFFF}Landstalker\n{FFFFFF}Launch");
strcat(vehicles, "\n{FFFFFF}Leviathan\n{FFFFFF}Linerunner\n{FFFFFF}Majestic\n{FFFFFF}Manana\n{FFFFFF}Marquis\n{FFFFFF}Maverick\n{FFFFFF}Merit\n{FFFFFF}Mesa\n{FFFFFF}Monster");
strcat(vehicles, "\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\n{FFFFFF}Newsvan");
strcat(vehicles, "\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");
strcat(vehicles, "\n{FFFFFF}Police Car (LSPD)\n{FFFFFF}Police Car (LVPD)\n{FFFFFF}Police Car (SFPD)\n{FFFFFF}Police Maverick\n{FFFFFF}Police Ranger\n{FFFFFF}Pony\n{FFFFFF}Perdator");
strcat(vehicles, "\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");
The thing is I need to have the blank space, as there will be the vehicle's price shown up in a different color (for example "{FFFFFF}Police Car (LSPD) {FF0000} 500k" and the list isn't even finished for me...

I recompiled my text and this is my pawno compiler output:
PHP код:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
Header size
:           3484 bytes
Code size
:            94008 bytes
Data size
:           293408 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
:  407284 bytes 
I tried running the script, however the dialog won't show at all now.
Reply


Messages In This Thread
String lenght is too high - by Adamoneoone - 26.06.2018, 10:44
Re: String lenght is too high - by JasonRiggs - 26.06.2018, 11:12
Re: String lenght is too high - by RoboN1X - 26.06.2018, 11:28
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 11:42
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 12:01
Re: String lenght is too high - by aoky - 26.06.2018, 12:07
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 12:08
Re: String lenght is too high - by Spmn - 26.06.2018, 12:46
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 14:29
Re: String lenght is too high - by GTLS - 26.06.2018, 14:54
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 17:04
Re: String lenght is too high - by JasonRiggs - 26.06.2018, 17:26
Re: String lenght is too high - by Adamoneoone - 26.06.2018, 19:16
Re: String lenght is too high - by Adamoneoone - 27.06.2018, 13:36
Re: String lenght is too high - by GTLS - 27.06.2018, 15:26
Re: String lenght is too high - by Zeth - 27.06.2018, 15:42
Re: String lenght is too high - by Adamoneoone - 27.06.2018, 16:03
Re: String lenght is too high - by Verc - 27.06.2018, 20:47
Re: String lenght is too high - by CodeStyle175 - 27.06.2018, 21:06
Re: String lenght is too high - by Adamoneoone - 28.06.2018, 07:15
Re: String lenght is too high - by xMoBi - 28.06.2018, 07:22
Re: String lenght is too high - by Adamoneoone - 28.06.2018, 20:07
Re: String lenght is too high - by GhostHacker9 - 29.06.2018, 02:49
Re: String lenght is too high - by NaS - 29.06.2018, 05:48
Re: String lenght is too high - by xMoBi - 29.06.2018, 06:03
Re: String lenght is too high - by Adamoneoone - 29.06.2018, 07:03
Re: String lenght is too high - by Sasino97 - 29.06.2018, 14:44
Re: String lenght is too high - by Adamoneoone - 29.06.2018, 16:13
Re: String lenght is too high - by Adamoneoone - 30.06.2018, 20:43
Re: String lenght is too high - by Adamoneoone - 01.07.2018, 20:51
Re: String lenght is too high - by CodeStyle175 - 01.07.2018, 20:52
Re: String lenght is too high - by Adamoneoone - 01.07.2018, 22:25

Forum Jump:


Users browsing this thread: 4 Guest(s)