Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

How can I do that?

$
0
0
Hello guys.

I have a command /reports only for admins. It shows all the reports submitted by players. I use for something like this:
Code:

CMD:reports(playerid, params) {
        for(new i; i < MAX_REPORTS; ++i)
        {
                if(Reports[i][reportValide]) {
                      format(string, sizeof(string), "Report: %s", Reports[i][reportDetails]);
                      SCM(playerid, COLOR_BLUE, string);
                }
          }
 return 1;
}

My question is, how can I make each row to be a different color? Like in this pictures: https://i.imgur.com/6BZU6Jo.png

example
Code:

row 1 - color A
        row 2 - color B
        row 3 - color A
        row 4 - color B


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>