Function Error.
#1

Hello there,

pawn Код:
#define SendPMessageA(playerid, color, %0) \
                            SendClientMessage(playerid, color %0)
Код:
unknown parameter in substitution (incorrect #define pattern)
What's Wrong? (Explanation please)
any help will be appreciated!
~Thanks~
Reply
#2

If you want to write functions then write functions. If you want to write macros then write macros. Do not combine the two.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
If you want to write functions then write functions. If you want to write macros then write macros. Do not combine the two.
okay, but why? (it's a static?)
Reply
#4

pawn Код:
#define SendPMessageA(playerid, color, %0) \
                            SendClientMessage(playerid, color, %0)
You forgot a comma. You can also do this by the way:

pawn Код:
#define SendPMessageA SendClientMessage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)