11.02.2014, 01:05
As i realise in a_samp.inc:
i tried testing till it worked, and i found that you can't do something like this:
While this worked:
Try in your script #undef MAX_PLAYER_NAME then re-define it.
example:
I hope you got that the compiler doesn't recognize #(15) while it recognizes #15
pawn Код:
#define MAX_PLAYER_NAME (24)
pawn Код:
print("Hi, my ID is "#(15)"!");
pawn Код:
print("Hi, my ID is "#15"!");
example:
pawn Код:
//@Top after includes:
#if defined MAX_PLAYER_NAME
#undef MAX_PLAYER_NAME
#endif
#define MAX_PLAYER_NAME 24
// Anywhere
if(!sscanf(params, "s[" #MAX_PLAYER_NAME "]", name))
{
// rest of your code
}