Problem error
#4

Using strcat.

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", "");
Reply


Messages In This Thread
Problem error - by NeyMar96 - 04.08.2011, 19:06
Re: Problem error - by [HiC]TheKiller - 04.08.2011, 19:09
Re: Problem error - by NeyMar96 - 04.08.2011, 19:32
Re: Problem error - by Scarred - 04.08.2011, 19:36
Re: Problem error - by MadeMan - 04.08.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)