Error 029 help
#1

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?
Reply
#2

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

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

Remove only the ";"
Reply
#5

same
Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)