26.01.2015, 09:42
Use like this -
strcat joins two strings, it doesn't format it
And use \t instead of long space, \t is more accurate and faster method to give a equal space so that text appear aligned, you can ****** to see affect of \t
pawn Код:
CMD:stats(playerid,params[])
{
new string2[200], temp[100];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string2, sizeof(string2),"{FF0000}Name: {15FF00}%s \n{FF0000}Player ID: {15FF00}%d\n{FF0000}Kills: {15FF00}%d\n{FF0000}Deaths: {15FF00}%d", name, playerid, pInfo[playerid][pKills], pInfo[playerid][pDeaths]);
format(temp, sizeof(temp), "{FF0000}Admin Level: {15FF00}%d\n{FF0000}Admin Rank: {15FF00}%s\n{FF0000}Scores: {15FF00}%d\n{FF0000}Money/Cash: {15FF00}%d", pInfo[playerid][pAdmin], GetAdminRank(playerid), GetPlayerScore(playerid), GetPlayerCash(playerid));
strcat(string2, temp);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{15FF00}Account Statistic",string2,"Close","");
return 1;
}
And use \t instead of long space, \t is more accurate and faster method to give a equal space so that text appear aligned, you can ****** to see affect of \t

