Trying to make my own admin script. [UNSOLVED] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trying to make my own admin script. [UNSOLVED] (
/showthread.php?tid=91845)
Trying to make my own admin script. [UNSOLVED] -
_Vortex - 17.08.2009
Im trying to make my own admin system, using this tutorial:
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Unfortunately, it was not finished, so I'm TRYING to finish it myself.
I've got what the tutorial had alreaddy, and im going on from there, but I compiled it to see how its going so far, and im getting 26 error messages:
Код:
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(32) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(33) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(34) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(35) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(36) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(66) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(67) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(68) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(69) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(70) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(71) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(72) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(73) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(74) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(75) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(76) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(77) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(78) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(79) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(80) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(81) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(82) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(83) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(84) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(85) : error 017: undefined symbol "gCommands"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(86) : error 017: undefined symbol "gCommands"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Heres the script:
http://pastebin.com/m1a31ccdc
(yes I know the armor all command wont give anyone armor, but I'm trying to learn how to do that :P
Re: Trying to make my own admin script. -
Googles - 17.08.2009
You are either Missing new. or a ;
Re: Trying to make my own admin script. -
_Vortex - 17.08.2009
If you took a look at the script, you'd notice I did not miss a new or a ;
Re: Trying to make my own admin script. -
Googles - 17.08.2009
Hmm Well. Idk -_-
Re: Trying to make my own admin script. -
Jefff - 17.08.2009
Cut this in your FS
Код:
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
enum SETTINGS_MAIN {
POCKET_MONEY,
JAIL_COMMANDS,
ANNOUNCE_SECONDS,
PASS_MIN,
PASS_MAX
}
new gSettings[SETTINGS_MAIN];
enum COMMANDS_MAIN {
AKILL,
ANNOUNCE,
ARMOURALL,
BAN,
CARHP,
EXPLODE,
FLIP,
GOTO,
GETHERE,
GIVEARMOUR,
GIVEHEALTH,
GIVEWEAPON,
GOD,
HEALALL,
IMITATE,
IP,
KICK,
MAXAMMO,
PING,
SETLEVEL,
SETWANTED,
TBAN,
TIME,
WEATHER
}
new gCommands[COMMANDS_MAIN];
and paste
Код:
//here
public OnFilterScriptInit()
Re: Trying to make my own admin script. -
_Vortex - 17.08.2009
Thanks, but now I'm getting four more errors:
Код:
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(32) : error 017: undefined symbol "gSettings"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(32) : error 017: undefined symbol "POCKET_MONEY"
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(32) : error 029: invalid expression, assumed zero
C:\Users\Damien\Desktop\samp server\filterscripts\admin.pwn(32) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.