Undefined symbol "MAX_PLAYERS"
#1

Код:
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"

Reply
#2

make sure that Thing Is under the Include
pawn Код:
#include <a_samp>
if still it doesnt works
try this
Under your Defines

pawn Код:
#define MAX_PLAYERS 500

and if that doesnt Work try To put this
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
above the Enum
Reply
#3

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.
Reply
#4

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
Reply
#5

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];
Reply
#6

You might have also undefined your MAX_PLAYERS but forgot to redefine it.

pawn Код:
#undef MAX_PLAYERS
//Forgot to #define MAX_PLAYERS amount
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)