Errors. - 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: Errors. (
/showthread.php?tid=384018)
Errors. -
Joshswag - 09.10.2012
Код:
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.
Line 23 to 57
Код:
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
I recently started scripting today, I've learnt how to make basic commands etc in my gamemode, Now i've moved on to starting a Filterscript, Im currently reading a tutorial on how to make a basic administator filterscript, and i've gotten through it all, but it's told me to come back and update my OnFilterScriptInIt, and then this has happend.