Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Bug Fix] Small Bug in Ban


Valentine90
 Share

Recommended Posts

**Sorry my english**

The error happens when you try someone ban and happens server error saying it could not find the folder.

**Open Server**

**1 -** In **modDatabase**, In **Sub BanIndex** and **Sub ServerBanIndex**, look for:

```
filename = App.Path & "data\banlist.txt"
```

**2 -** Replace with:

```
filename = App.Path & "\data\banlist.txt"
```

**3 -** Look for:

```
If Not FileExist("data\banlist.txt") Then
```

**4 -** Replace with:

```
If Not FileExist(filename) Then
```

**Credits:**

Valentine
Link to comment
Share on other sites

> Can u give me an example of one that should be private so I have an idea of what needs to be changed?

Pretty much everything in modHandleData needs to be, well everything that handles packets anyway.

Leave the few things in there that are accessed elsewhere such as IncomingData alone.
Link to comment
Share on other sites

> A private sub is actually processed quicker then a public one, don't comment on something if you have no idea what you are talking about.

Like you know what you are talking about. Private subs can only be called from the module they are in and not by the rest of the program when public subs can be called from anywhere in the program
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...