Need Help
#4

Yes. \n means new line, so you just put the \n wherever you want a new line.

strcat is adding all the coordsstring2s that you formatted to one long string, coordsstring, so all you gotta do is, like I said, show coordsstring after "Stats".

If you want to put two different sections into one dialog, you just have to do the same thing, but with 'OOC stats' and 'IC stats' rather than the actual stats.

For example,

pawn Код:
format(coordsstring2, sizeof(coordsstring2), "\t\t| OOC stats |\n\n");
// "\t\t" more-or-less centers your text. You can have it to the left, center or right by using more/less "\t"s.
strcat(coordsstring2, coordsstring);
format(coordsstring2, sizeof(coordsstring2), "| Level: %d |\n", level);
strcat(coordsstring2, coordsstring);
format(coordsstring2, sizeof(coordsstring2), "\t\t| IC stats |\n\n");
strcat(coordsstring2, coordsstring);
format(coordsstring2, sizeof(coordsstring2), "| Sex: %s |\n", atext);
strcat(coordsstring2, coordsstring);
Etc etc.
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)