Help Macros
#5

Quote:
Originally Posted by MoroDan
Посмотреть сообщение
It's similar to a function.

PHP код:
#define sum(%0, %1) (%0 + %1) 
PHP код:
stock sum(ab)
{
    return 
b;

Wrong, as ****** said, put the params always in ()
So your
pawn Код:
#define sum(%0, %1) (%0 + %1)
Should be
pawn Код:
#define sum(%0, %1) ((%0) + (%1))
Reply


Messages In This Thread
Help Macros - by TheArcher - 23.07.2011, 20:10
Re: Help Macros - by MoroDan - 23.07.2011, 20:14
Re: Help Macros - by TheArcher - 23.07.2011, 20:16
Re: Help Macros - by MoroDan - 23.07.2011, 20:18
Re: Help Macros - by FireCat - 24.07.2011, 11:25

Forum Jump:


Users browsing this thread: 2 Guest(s)