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

Little Problem in My Sub


PVJsquad
 Share

Recommended Posts

this is a sub

```
Sub SetGuildLogo(ByVal Index As Long)

Dim i As Long

i = rand(1, MAX_GUILD_LOGO)

'i = 8

GuildData(Index).Guild_Logo = i

Call SaveGuild(Index)

Call SavePlayer(Index)

PlayerMsg Index, "Logo Guild Kamu Secara Acak [" & GuildData(Index).Guild_Logo & "].", BrightGreen

'Update user for guild name display

Call SendPlayerData(Index)

End Sub
```

why when i call the sub it will sound "Subscript Out Of Range" on the line to

```
GuildData(Index).Guild_Logo = i
```
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...