20-09-2008, 05:45 PM
Code:
Case CBanDestroy
' Prevent hacking
If GetPlayerAccess(Index) < ADMIN_CREATOR Then
Call HackingAttempt(Index, "Admin Cloning")
Exit Sub
End If
Call Kill(App.Path & "\data\banlist.txt")
Call PlayerMsg(Index, "Ban list destroyed.", White)
Exit Sub
This is a pretty non-important error, but nonetheless, it'd be nice to get it fixed. When you try to destroy the banlist, it does. However, if you try a second, time when you have already destroyed it, it gives you an error, and shuts the server down, because there is nothing there to destroy. How can I make it so that, it checks to see if its there, and if it is, then destroy, else it exits the sub?