Emm...
#1

pawn Код:
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
enum PLAYER_MAIN
{
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    PLAYER_LOGGED,
    PLAYER_LEVEL,
    PLAYER_MUTED,
    PLAYER_JAILED,
}
What's wrong here? I was trying to make an admin fliterscript (not copying) by referring the SA:MP wiki.

But here's the error,
Код:
C:\Users\Kelvin\Desktop\Scripting\filterscripts\admin.pwn(38) : error 017: undefined symbol "PLAYER_MAIN"
C:\Users\Kelvin\Desktop\Scripting\filterscripts\admin.pwn(239) : warning 203: symbol is never used: "gPlayerInfo"
C:\Users\Kelvin\Desktop\Scripting\filterscripts\admin.pwn(239) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Put the enum before the new
pawn Код:
enum PLAYER_MAIN
{
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    PLAYER_LOGGED,
    PLAYER_LEVEL,
    PLAYER_MUTED,
    PLAYER_JAILED,
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
Reply
#3

This comes after the enum. new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];

EDIT: Damn he beat me.
Reply
#4

pawn Код:
enum PLAYER_MAIN
{
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    PLAYER_LOGGED,
    PLAYER_LEVEL,
    PLAYER_MUTED,
    PLAYER_JAILED,
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
u may get 1 error symbol gPlayerInfo never used..... well its cause u never used it has yet... the new doesn't count
Reply
#5

Quote:
Originally Posted by Glad2BeHere
Посмотреть сообщение
pawn Код:
enum PLAYER_MAIN
{
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    PLAYER_LOGGED,
    PLAYER_LEVEL,
    PLAYER_MUTED,
    PLAYER_JAILED,
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
u may get 1 error symbol gPlayerInfo never used..... well its cause u never used it has yet... the new doesn't count
That was just a beginning. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)