Need Help
#2

Make coordsstring bigger if needed and put all the format() lines into one long string using strcat, separated with \n.

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);
...etc for all lines, then use it in a ShowPlayerDialog.

pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Stats", coordsstring, "Close", "");
Reply


Messages In This Thread
Need Help - by Josip_Hrnjak - 19.05.2012, 20:39
Re: Need Help - by [FMJ]PowerSurge - 19.05.2012, 21:16
Re: Need Help - by Josip_Hrnjak - 20.05.2012, 08:47
Re: Need Help - by [FMJ]PowerSurge - 20.05.2012, 12:02
Re: Need Help - by Josip_Hrnjak - 20.05.2012, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)