Quote:
Originally Posted by TadePoleMG
Use a string for format and a destination string. Like
PHP код:
new string[128], desstring[500];
// Then Using format
format(string, sizeof(string),"...:::Weapon-Shop:::... \n\n");
// Using strcat
strcat(desstring, string);
format(string, sizeof(string),"{8080FF}Armour\t-\t2000$\n");
strcat(desstring, string);
// And so on......
// Then use ShowPlayerDialog like this
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST,"Weapons Shop", desstring,"Buy", "Close");
That's it.
Thank You.
|
he can use it directly:
strcat(desstring, "...:::Weapon-Shop:::... \n\n");
strcat(desstring, "{8080FF}Armour\t-\t2000$\n");
it is not necessary format(string....