How to convert this function to macro (#define bla bla )
#1

i want change it to #define GetPlayerNameEx(%0, %1) (What should i do here)

i wont to use value variable and strcpy is it possible?
Код:
GetPlayerNameEx(playerid, bool:underscore=true)
{
	new
		value[MAX_PLAYER_NAME];

	if (!underscore)
	{
        strcpy(value, PlayerData[playerid][pNickname], sizeof(value));
	}
	else
	{
 		strcpy(value, PlayerData[playerid][pUsername], sizeof(value));
	}
	return value;
}
Reply


Messages In This Thread
How to convert this function to macro (#define bla bla ) - by RaeF - 07.01.2015, 06:43
Re: How to convert this function to macro (#define bla bla ) - by Threshold - 07.01.2015, 10:11
Re: How to convert this function to macro (#define bla bla ) - by RaeF - 07.01.2015, 11:13
Re: How to convert this function to macro (#define bla bla ) - by Threshold - 07.01.2015, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)