![]() |
HDSN ban rte 9 - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: HDSN ban rte 9 (/showthread.php?tid=843) |
HDSN ban rte 9 - Nemesis - 22-03-2007 I recently added HDSN banning to my engine and I'm sort of stumped with the run time error 9 I'm getting. It'd be better to just post it rather than try to explain. Code: Function IsBanned(ByVal IP As String) As Boolean The line that is highlighted is Code: If Ban(I).BannedIP "" Then When I hold my mouse over it I get... Code: Ban(I).BannedIP = If anyone can help that'd be really cool. Thanks. Edit* Same exact thing with. Code: Function IsBannedHD(ByVal HD As String) As Boolean On line Code: If Ban(I).BannedHD "" Then If I try to put On Error Resume Next it just says I'm banned from the server so go figure -_-. - Nemesis - 22-03-2007 Yeah it was originally set As String. (I) is going out of range for some reason. On top of that, when I boot the server it isn't writing a banlist.ini and it doesn't crash until someone attempts to log in. |