Dialog Length error
#9

Hi SlayerHodge

Fix those warnings which is not hard to fix them otherwise use strcat, I'm making that for you-
PHP код:
if(strcmp("/"YOUR_CMD""cmdtexttrue10) == 0)
{
#pragma unused params
new Str[128], Dialog[800];
format(Str,sizeof(Str),"Cargo\tDestination\tPrice\n\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Aeroplane parts\t{f5f5dc}LasSantos Airport's Mechanic\t{33AA33}$5599\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Vehicle Clamps\t{f5f5dc}Police Impound Lot\t{33AA33}$9700\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Machine Weights\t{f5f5dc}Las Santos GYM\t{33AA33}$1000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Medical Equipment\t{f5f5dc}Jefferson's Hospital\t{33AA33}$10900\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Computers\t{f5f5dc}CityHall\t{33AA33}$6000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Security Cameras\t{f5f5dc}Main Bank\t{33AA33}$7500\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Laterns & Safty Vests\t{f5f5dc}Las Santos Lighthouse\t{33AA33}$6000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Rims & Tires\t{f5f5dc}Wheel arch Angles\t{33AA33}$26000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}GunParts\t{f5f5dc}Las Venturas Amunition\t{33AA33}$26000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}FireHidrands\t{f5f5dc}San Fiero Fire Depatrment\t{33AA33}$27500\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Furniture\t{f5f5dc}Queens Hotel\t{33AA33}$29100\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Galvanized Pipes\t{f5f5dc}KACC\t{33AA33}$30000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Building Materials\t{f5f5dc}Rockshore East Mall\t{33AA33}$26000\n");
strcat(Dialog,Str);
format(Str,sizeof(Str),"{f5f5dc}Oil Drums\t{f5f5dc}San Fiero Refinery\t{33AA33}$18770");
strcat(Dialog,Str);
ShowPlayerDialog(playerid241DIALOG_STYLE_TABLIST_HEADERS"Trucker Depot's Destinations",Dialog,"Select""Cancel");

It works fine and i made this by format so you can also use string or Integer values.
Thank You.
rep++, If you think I helped you.
Reply


Messages In This Thread
Dialog Length error - by SlayerHodge - 11.05.2018, 12:46
Re: Dialog Length error - by Lokii - 11.05.2018, 12:47
Re: Dialog Length error - by Dayrion - 11.05.2018, 13:30
Re: Dialog Length error - by SlayerHodge - 11.05.2018, 22:23
Re: Dialog Length error - by DeathCore - 11.05.2018, 22:25
Re: Dialog Length error - by SlayerHodge - 11.05.2018, 22:39
Re: Dialog Length error - by SlayerHodge - 11.05.2018, 22:41
Re: Dialog Length error - by Dice_ - 12.05.2018, 04:12
Re: Dialog Length error - by TadePoleMG - 12.05.2018, 07:29
Re: Dialog Length error - by TadePoleMG - 12.05.2018, 07:55
Re: Dialog Length error - by TadePoleMG - 12.05.2018, 07:58
Re: Dialog Length error - by Sew_Sumi - 12.05.2018, 10:04
Re: Dialog Length error - by TadePoleMG - 12.05.2018, 10:22
Re: Dialog Length error - by Sew_Sumi - 12.05.2018, 10:39
Re: Dialog Length error - by TadePoleMG - 12.05.2018, 10:42
Re: Dialog Length error - by Sew_Sumi - 12.05.2018, 10:53
Re: Dialog Length error - by SlayerHodge - 12.05.2018, 11:41
Re: Dialog Length error - by SlayerHodge - 13.05.2018, 10:48
Re: Dialog Length error - by Sew_Sumi - 13.05.2018, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)