How can I do that?
#6

You cannot rely on i as a report may or may not be valid according to what you said. So you will need a counter variable.

pawn Код:
new counter = -1;
for (new i; i < MAX_REPORTS; ++i)
{
    if (Reports[i][reportValide])
    {
        string = "Report: ";
        strcat(string, Reports[i][reportDetails]);

        SCM(playerid, ++counter % 2 ? COLOR_BLUE : COLOR_YELLOW, string);
    }
}
Reply


Messages In This Thread
How can I do that? - by None1337 - 14.12.2017, 10:58
Re: How can I do that? - by Kaperstone - 14.12.2017, 11:10
Re: How can I do that? - by None1337 - 14.12.2017, 11:27
Re: How can I do that? - by MEW273 - 14.12.2017, 11:47
Re: How can I do that? - by None1337 - 14.12.2017, 13:45
Re: How can I do that? - by Konstantinos - 14.12.2017, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)