28.04.2011, 22:00
Take a look at that:
And gives me:
If I remove the line 158, gives me same errors on other lines, since I use these functions other times. What's wrong with the #define function?
I used to use this function as stock, but now I want as #define. Thanks,
pawn Код:
#define Msg(%1, %2, %3) \
foreach(Player, players) \
if(players != %1 || %1 != players) \
SendClientMessage(%1, %2, %3)
#define MsgForAll(%1, %2) \
foreach(Player, players) \
Msg(players, %1, %2)
Код:
E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 236: unknown parameter in substitution (incorrect #define pattern) E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 236: unknown parameter in substitution (incorrect #define pattern) E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 236: unknown parameter in substitution (incorrect #define pattern) E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 236: unknown parameter in substitution (incorrect #define pattern) E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : error 029: invalid expression, assumed zero E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 215: expression has no effect E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : error 029: invalid expression, assumed zero E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : warning 215: expression has no effect E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : error 001: expected token: ";", but found ")" E:\SAMP SERVER 0.3C\gamemodes\Roleplay.pwn(158) : fatal error 107: too many error messages on one line
pawn Код:
Msg(playerid, color_white, string);