18.05.2010, 15:05
Hello so i have problem when i compile i got this error:
Maybe someone know how to fix it
Heres the lines that is in error
Help me please
Код:
C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(34) : error 017: undefined symbol "gSettings" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(35) : error 017: undefined symbol "gSettings" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(36) : error 017: undefined symbol "gSettings" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(37) : error 017: undefined symbol "gSettings" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(38) : error 017: undefined symbol "gSettings" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(68) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(69) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(70) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(71) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(72) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(73) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(74) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(75) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(76) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(77) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(78) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(79) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(80) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(81) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(82) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(83) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(84) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(85) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(86) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(87) : error 017: undefined symbol "gCommands" C:\Documents and Settings\Admin\My Documents\Downloads\samp03asvr_R7_win32\filterscripts\admin.pwn(88) : error 017: undefined symbol "gCommands" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Heres the lines that is in error
Код:
public OnFilterScriptInit() { print("\n****************************************"); print("* Admin Filterscript by Your name here *"); print("****************************************\n"); if(!fexist(SettingFile)) { dini_Create(SettingFile); dini_IntSet(SettingFile, "PocketMoney", 3000); dini_IntSet(SettingFile, "JailCommands", 0); dini_IntSet(SettingFile, "AnnounceSeconds", 3); dini_IntSet(SettingFile, "PassMin", 3); dini_IntSet(SettingFile, "PassMax", 15); } gSettings[POCKET_MONEY] = dini_Int(SettingFile, "PocketMoney"); gSettings[JAIL_COMMANDS] = dini_Int(SettingFile, "JailCommands"); gSettings[ANNOUNCE_SECONDS] = dini_Int(SettingFile, "AnnounceSeconds"); gSettings[PASS_MIN] = dini_Int(SettingFile, "PassMin"); gSettings[PASS_MAX] = dini_Int(SettingFile, "PassMax"); if(!fexist(CommandFile)) { dini_Create(CommandFile); dini_IntSet(CommandFile, "Akill", 6); dini_IntSet(CommandFile, "Announce", 5); dini_IntSet(CommandFile, "Armourall", 3); dini_IntSet(CommandFile, "Ban", 9); dini_IntSet(CommandFile, "Carhp", 4); dini_IntSet(CommandFile, "Explode", 5); dini_IntSet(CommandFile, "Goto", 4); dini_IntSet(CommandFile, "Gethere", 5); dini_IntSet(CommandFile, "Givearmour", 6); dini_IntSet(CommandFile, "Givehealth", 6); dini_IntSet(CommandFile, "Giveweapon", 7); dini_IntSet(CommandFile, "God", 10); dini_IntSet(CommandFile, "Healall", 7); dini_IntSet(CommandFile, "Imitate", 8); dini_IntSet(CommandFile, "Ip", 2); dini_IntSet(CommandFile, "Kick", 7); dini_IntSet(CommandFile, "Maxammo", 8); dini_IntSet(CommandFile, "Ping", 1); dini_IntSet(CommandFile, "Setlevel", 10); dini_IntSet(CommandFile, "Setwanted", 6); dini_IntSet(CommandFile, "Tban", 9); dini_IntSet(CommandFile, "Time", 3); dini_IntSet(CommandFile, "Weather", 3); } gCommands[AKILL] = dini_Int(CommandFile, "Akill"); gCommands[ANNOUNCE] = dini_Int(CommandFile, "Announce"); gCommands[ARMOURALL] = dini_Int(CommandFile, "Armourall"); gCommands[BAN] = dini_Int(CommandFile, "Ban"); gCommands[CARHP] = dini_Int(CommandFile, "Carhp"); gCommands[EXPLODE] = dini_Int(CommandFile, "Explode"); gCommands[GOTO] = dini_Int(CommandFile, "Goto"); gCommands[GETHERE] = dini_Int(CommandFile, "Gethere"); gCommands[GIVEARMOUR] = dini_Int(CommandFile, "Givearmour"); gCommands[GIVEHEALTH] = dini_Int(CommandFile, "Givehealth"); gCommands[GIVEWEAPON] = dini_Int(CommandFile, "Giveweapon"); gCommands[GOD] = dini_Int(CommandFile, "God"); gCommands[HEALALL] = dini_Int(CommandFile, "Healall"); gCommands[IMITATE] = dini_Int(CommandFile, "Imitate"); gCommands[IP] = dini_Int(CommandFile, "Ip"); gCommands[KICK] = dini_Int(CommandFile, "Kick"); gCommands[MAXAMMO] = dini_Int(CommandFile, "Maxammo"); gCommands[SETLEVEL] = dini_Int(CommandFile, "Setlevel"); gCommands[SETWANTED] = dini_Int(CommandFile, "Setwanted"); gCommands[TBAN] = dini_Int(CommandFile, "Tban"); gCommands[TIME] = dini_Int(CommandFile, "Time"); gCommands[WEATHER] = dini_Int(CommandFile, "Weather"); return 1; } #endif enum PLAYER_MAIN { PLAYER_NAME[MAX_PLAYER_NAME], PLAYER_IP[16], PLAYER_REGGED, PLAYER_PASS, PLAYER_LOGGED, PLAYER_LEVEL, PLAYER_WIRED, PLAYER_JAILED } enum SETTINGS_MAIN { POCKET_MONEY, JAIL_COMMANDS, ANNOUNCE_SECONDS, PASS_MIN, PASS_MAX } new gSettings[SETTINGS_MAIN]; new gPlayerInfo[MAX_PLAYERS][PLAYER_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];