02.07.2012, 11:14
I have these lines
and i get these errors
what should i do to fix it?
Код:
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; }
Код:
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