Undefined symbol "MAX_PLAYERS" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Undefined symbol "MAX_PLAYERS" (
/showthread.php?tid=445520)
Undefined symbol "MAX_PLAYERS" -
Sellize - 21.06.2013
Код:
enum pInfo
{
pPass,
pCash,
pAdmin,
pGuard,
pSkin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Quote:
C:\Users\xxxxxxxx\Desktop\xxxxxx\gamemodes\xxxxxx. pwn(29) : error 017: undefined symbol "MAX_PLAYERS"
|
Re: Undefined symbol "MAX_PLAYERS" -
Sulps - 21.06.2013
make sure that Thing Is under the Include
if still it doesnt works
try this
Under your Defines
and if that doesnt Work try To put this
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
above the Enum
AW: Undefined symbol "MAX_PLAYERS" -
Blackazur - 21.06.2013
are you sure you have on top of your script #include < a_samp>
or try that maybe:
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
enum pInfo
{
pPass,
pCash,
pAdmin,
pGuard,
pSkin,
}
@Sulps that won't help.
Re: AW: Undefined symbol "MAX_PLAYERS" -
Sulps - 21.06.2013
Quote:
Originally Posted by Blackazur
are you sure you have on top of your script #include < a_samp>
@Sulps that won't help.
|
Ye Obviously if he haven't Included the A_samp on Top
He would get More errors about Callbacks and Functions
AW: Undefined symbol "MAX_PLAYERS" -
HurtLocker - 21.06.2013
Actually including the a_samp is not necessary anymore.
The simplest thing to do here is to make
pawn Код:
new playerinfo[server's slots amount][pinfo];
Re: Undefined symbol "MAX_PLAYERS" -
Kindred - 21.06.2013
You might have also undefined your MAX_PLAYERS but forgot to redefine it.
pawn Код:
#undef MAX_PLAYERS
//Forgot to #define MAX_PLAYERS amount