Textdraw question
#2

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);
Reply


Messages In This Thread
Textdraw question - by KinderClans - 10.08.2018, 17:17
Re: Textdraw question - by GRiMMREAPER - 10.08.2018, 17:54
Re: Textdraw question - by NaS - 10.08.2018, 18:08
Re: Textdraw question - by GRiMMREAPER - 10.08.2018, 18:54
Re: Textdraw question - by KinderClans - 10.08.2018, 19:29
Re: Textdraw question - by GRiMMREAPER - 10.08.2018, 19:50
Re: Textdraw question - by BigETI - 10.08.2018, 19:56
Re: Textdraw question - by Deadpoop - 10.08.2018, 20:18
Re: Textdraw question - by KinderClans - 10.08.2018, 20:21
Re: Textdraw question - by GRiMMREAPER - 10.08.2018, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)