12.05.2018, 07:29
Hi SlayerHodge
Fix those warnings which is not hard to fix them otherwise use strcat, I'm making that for you-
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.
Fix those warnings which is not hard to fix them otherwise use strcat, I'm making that for you-
PHP код:
if(strcmp("/"YOUR_CMD"", cmdtext, true, 10) == 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(playerid, 241, DIALOG_STYLE_TABLIST_HEADERS, "Trucker Depot's Destinations",Dialog,"Select", "Cancel");
}
Thank You.
rep++, If you think I helped you.