Is this shortcut possible
#4

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);
EDIT: Forgot that in define, on the first parameter you don't add spaces.
EDIT2: leftout playerid, and I separated the string from the array, just in case.
Reply


Messages In This Thread
Is this shortcut possible - by NealPeteros - 04.12.2017, 14:53
Re: Is this shortcut possible - by Kaperstone - 04.12.2017, 14:59
Re: Is this shortcut possible - by NealPeteros - 04.12.2017, 15:02
Re: Is this shortcut possible - by Kaperstone - 04.12.2017, 15:22
Re: Is this shortcut possible - by NealPeteros - 04.12.2017, 15:28
Re: Is this shortcut possible - by Kaperstone - 04.12.2017, 15:33
Re: Is this shortcut possible - by NealPeteros - 04.12.2017, 15:42
Re: Is this shortcut possible - by Kaperstone - 04.12.2017, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)