26.05.2018, 03:30
Fix it properly and make your script more capable for the future.
And it's encouraging to see you try this...
and if you used this, set your defines to
And use case on pinfo[playerid][color] checking for the color, and formatting in that result where it's checked on the area you're formatting the text and displaying it.
This last portion, is what you'd look at putting in a function if you used it in more scenarios.
And, color in this instance wouldn't need to be the array... It'll simply be color.
And it's encouraging to see you try this...
PHP код:
pinfo[playerid][color] = RED;
PHP код:
#define RED 1
#define YELLOW 2
#define GREEN 3
This last portion, is what you'd look at putting in a function if you used it in more scenarios.
And, color in this instance wouldn't need to be the array... It'll simply be color.