09.10.2012, 21:14
Код:
C:\Users\Josh\Desktop\Sa-mp Server\filterscripts\Admin Filterscript.pwn(39) : error 029: invalid expression, assumed zero C:\Users\Josh\Desktop\Sa-mp Server\filterscripts\Admin Filterscript.pwn(39) : error 001: expected token: ";", but found "]" C:\Users\Josh\Desktop\Sa-mp Server\filterscripts\Admin Filterscript.pwn(39) : error 029: invalid expression, assumed zero C:\Users\Josh\Desktop\Sa-mp Server\filterscripts\Admin Filterscript.pwn(39) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
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");
return 1;
}
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];
#endif

