A few errors in script.
#1

Код:
public OnFilterScriptInit()
{
 	print("\n****************************************");
	print("* Admin Filterscript by Kim Cold *");
	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;
 	}
Errors:
Код:
(55) : error 029: invalid expression, assumed zero
(55) : error 029: invalid expression, assumed zero
(55) : warning 215: expression has no effect
(55) : error 001: expected token: ";", but found "]"
(55) : fatal error 107: too many error messages on one line
Line 55:
Код:
gSettings[POCKET_MONEY] 		= dini_Int(SettingFile, "PocketMoney");
What is my mistake?



Thank you in advance
Reply


Messages In This Thread
A few errors in script. - by kimse007 - 01.04.2009, 13:59
Re: A few errors in script. - by Sdhoirm - 01.04.2009, 14:42
Re: A few errors in script. - by Kinetic - 01.04.2009, 14:46
Re: A few errors in script. - by kimse007 - 01.04.2009, 15:03
Re: A few errors in script. - by hyp3r - 01.04.2009, 15:13
Re: A few errors in script. - by kimse007 - 01.04.2009, 15:16
Re: A few errors in script. - by ICECOLDKILLAK8 - 01.04.2009, 15:21
Re: A few errors in script. - by kimse007 - 01.04.2009, 15:39
Re: A few errors in script. - by Think - 01.04.2009, 16:47
Re: A few errors in script. - by kimse007 - 01.04.2009, 17:34
Re: A few errors in script. - by kimse007 - 02.04.2009, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)