27.01.2012, 19:39
Thanks,
i now have it like this
But it only shows [%d], it has to be the ammount of warns for example.
Also it only shows the first strcat line.
Help please.
i now have it like this
pawn Код:
new string[400];
new Float:Ratio = (float(pInfo[playerid][Kills])/float(pInfo[playerid][Deaths]));
strcat(string, ""COL_PINK"Kills: "COL_GREY"[%d]\n"COL_PINK""COL_PINK"Deaths: "COL_GREY"[%d] \n"COL_PINK"Score: "COL_GREY"[%d]\n"COL_PINK"Money: "COL_GREY"[$ %d]", pInfo[playerid][Kills], pInfo[playerid][Deaths],GetPlayerScore(playerid),GetPlayerMoney(playerid));
strcat(string, "\n"COL_PINK"Adminlevel: "COL_GREY"[%d]\n"COL_PINK"Ratio: "COL_GREY"%.3f\n"COL_PINK"Warns: "COL_GREY"[%d]\n\n\n"COL_PINK"Total Online Time: "COL_GREY"[%d]", pInfo[playerid][Admin], Ratio, pInfo[playerid][Warns], pInfo[playerid][Online]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Stats", string, "Close", "");
But it only shows [%d], it has to be the ammount of warns for example.
Also it only shows the first strcat line.
Help please.