SA-MP Forums Archive
Emm... - 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: Emm... (/showthread.php?tid=425290)



Emm... - LeeXian99 - 25.03.2013

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.



Re: Emm... - greentarch - 25.03.2013

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];



Re: Emm... - Denying - 25.03.2013

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

EDIT: Damn he beat me.


Re: Emm... - Glad2BeHere - 25.03.2013

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


Re: Emm... - LeeXian99 - 25.03.2013

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