04.12.2017, 15:22
pawn Код:
#define UpdateAttribute(%0,%1,%2); \
new str[36];strcat(str,""COL_GREEN"");for(new x=0;x<10;x++){if(x==PlayerInfo[%0][%1]){strcat(str,""COL_WHITE"");}strcat(str,"O");if(x<10){strcat(str," ");}}PlayerTextDrawSetString(%0, %2[%0], str);
EDIT2: leftout playerid, and I separated the string from the array, just in case.
