04.08.2011, 19:36
Using strcat.
Here's an example from my statistics command off an old gamemode of mine:
Here's an example from my statistics command off an old gamemode of mine:
pawn Код:
format(string, sizeof(string), "{0FA0D1}Name: {FFFFFF}%s (ID: %d)\n{0FA0D1}VIP Rank: {FFFFFF}%s (%d)\n{0FA0D1}Money: {FFFFFF}$%d", pName(playerid), playerid, VIPName, PVar[playerid][VIPLevel], PVar[playerid][pMoney]);
strcat(holder, string, sizeof(holder));
//Format another string here, and then use strcat(holder, string, sizeof(holder) again.
ShowPlayerDialog(playerid, STATS, DIALOG_STYLE_MSGBOX, "{0FA0D1}Los Santos Turf War: Statistics", holder, "Hide", "");