10.08.2018, 17:54
(
Последний раз редактировалось GRiMMREAPER; 10.08.2018 в 18:54.
)
This should do the job:
pawn Код:
new jobsText[50]; // Increase/decrease the size if necessary.
new JobNames[][] =
{
"Robber", "Rapist", "Medic"
};
pawn Код:
// Wherever you create your textdraws.
for(new i = 0; i < sizeof JobNames; i++) {
strcat(jobsText, JobNames[0][i]);
if(i != sizeof(JobNames) - 1) { // Preventing a new line from being added in the last line.
strcat(jobsText, "~n~");
}
}
TextDrawSetString(YOUR_TEXTDRAW, jobsText);