14.12.2017, 11:27
Quote:
|
Use the `i` as an indicator to the current stage and conditional statement to know what i equals to, if it equals to any i, make it send the message with the color formatted in HEX between {}
Something like so pawn Код:
|
Код:
CMD:reports(playerid, params) {
for(new i; i < MAX_REPORTS; ++i)
{
if(Reports[i][reportValide]) {
format(string, sizeof(string), "Report: %s", Reports[i][reportDetails]);
if(i==0) SCM(playerid, COLOR_YELLOW, string);
if(i==1) SCM(playerid, COLOR_BLUE, string);
if(i==2) SCM(playerid, COLOR_YELLOW, string);
if(i==3) SCM(playerid, COLOR_BLUE, string);
}
}
return 1;
}


