SA-MP Forums Archive
Error 029 help - 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: Error 029 help (/showthread.php?tid=356083)



Error 029 help - madalindx - 02.07.2012

I have these lines
Код:
	PRIVATE: LoadIpBans ()
	{
		if (DOF2::FileExists (IP_BAN_FILE));
		{
			new
				File: f = fopen (IP_BAN_FILE, io_read),
				string [16];

			IpBanCount = 0;
			while (fread (f, string, sizeof (string)) && IpBanCount < sizeof (IpBans))
			{
				JB::StripNewLine (string);
				if (string [0])
				{
					IpBans [IpBanCount] = SplitIp (string);
					if (IpBans [IpBanCount] != 0xFFFFFFFF)
						++IpBanCount;
				}
			}
			fclose (f);
			JB::LogEx ("%d IP-bans have been loaded.", IpBanCount);
			return 1;
		}
and i get these errors
Код:
D:\samp\blocare casino\server\filterscripts\JB.pwn(3890) : error 029: invalid expression, assumed zero
D:\samp\blocare casino\server\filterscripts\JB.pwn(3890) : warning 215: expression has no effect
D:\samp\blocare casino\server\filterscripts\JB.pwn(3890) : error 001: expected token: ";", but found ")"
D:\samp\blocare casino\server\filterscripts\JB.pwn(3890) : error 029: invalid expression, assumed zero
D:\samp\blocare casino\server\filterscripts\JB.pwn(3890) : fatal error 107: too many error messages on one line
what should i do to fix it?


Respuesta: Error 029 help - [DOG]irinel1996 - 02.07.2012

Can you tell me which line is 3890?
__________
EDIT:
Change it with this:
pawn Код:
if (DOF2::FileExists (IP_BAN_FILE))



AW: Error 029 help - madalindx - 02.07.2012

this one
Код:
if (DOF2::FileExists (IP_BAN_FILE));



Re: Error 029 help - Rg-Gaming.Info - 02.07.2012

Remove only the ";"


AW: Error 029 help - madalindx - 02.07.2012

same


Respuesta: Error 029 help - [DOG]irinel1996 - 02.07.2012

Are you using Double-O-Files by Double-O-Seven?
__________________
EDIT:
Try with this:
pawn Код:
if(DOF2.FileExists (IP_BAN_FILE))



AW: Error 029 help - madalindx - 02.07.2012

yes, i do
it's from junk buster, i really need it, junkbuster v 11 or v10, i would like that bot who send messages with kick, ban, fpslimit, /myfps, etc

EDIT: it didn't work