19.05.2012, 21:16
Make coordsstring bigger if needed and put all the format() lines into one long string using strcat, separated with \n.
For example...
...etc for all lines, then use it in a ShowPlayerDialog.
For example...
pawn Код:
new coordsstring[512];
new coordsstring2[176];
format(coordsstring2, sizeof(coordsstring2), "| Level: %d | Sex: %s | Age: %d | Cash: $%d | Bank: $%d | Ph: %d | Regular Rank: %s |\n", level,atext,age,cash,account,pnumber,drank);
strcat(coordsstring2, coordsstring);
format(coordsstring2, sizeof(coordsstring2), "| Total Playing Hours: %d | Total Playing Mins: %d | Total Playing Secs: %d | BiggestFish: %d | TimesArrested: %d |\n",(ptime / 3600), (ptime / 60), ptime,bigfish,arrests);
strcat(coordsstring2, coordsstring);
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Stats", coordsstring, "Close", "");