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

You can't really use #define, otherwise you get:
Код:
warning 206: redundant test: constant expression is non-zero
But you can use:
pawn Код:
GetPlayerNameEx(playerid, bool:underscore = true) return (underscore) ? (PlayerData[playerid][pUsername]) : (PlayerData[playerid][pNickname]);
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)