PDA

View Full Version : Undefined symbol "MAX_PLAYERS"


Sellize
21/06/2013, 05:36 PM
enum pInfo
{
pPass,
pCash,
pAdmin,
pGuard,
pSkin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];

C:\Users\xxxxxxxx\Desktop\xxxxxx\gamemodes\xxxxxx. pwn(29) : error 017: undefined symbol "MAX_PLAYERS"

Sulps
21/06/2013, 05:40 PM
make sure that Thing Is under the Include
#include <a_samp>

if still it doesnt works
try this
Under your Defines

#define MAX_PLAYERS 500


and if that doesnt Work try To put this
new PlayerInfo[MAX_PLAYERS][pInfo];
above the Enum

Blackazur
21/06/2013, 05:44 PM
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.

Sulps
21/06/2013, 05:46 PM
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

HurtLocker
21/06/2013, 05:51 PM
Actually including the a_samp is not necessary anymore.

The simplest thing to do here is to make new playerinfo[server's slots amount][pinfo];

Kindred
21/06/2013, 05:54 PM
You might have also undefined your MAX_PLAYERS but forgot to redefine it.


#undef MAX_PLAYERS
//Forgot to #define MAX_PLAYERS amount