A little error
#2

As i realise in a_samp.inc:

pawn Код:
#define MAX_PLAYER_NAME (24)
i tried testing till it worked, and i found that you can't do something like this:

pawn Код:
print("Hi, my ID is "#(15)"!");
While this worked:

pawn Код:
print("Hi, my ID is "#15"!");
Try in your script #undef MAX_PLAYER_NAME then re-define it.

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
}
I hope you got that the compiler doesn't recognize #(15) while it recognizes #15
Reply


Messages In This Thread
A little error - by Teemo - 11.02.2014, 00:11
Re: A little error - by Kirollos - 11.02.2014, 01:05

Forum Jump:


Users browsing this thread: 1 Guest(s)