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

Can't seem to get this hotkey case to work.


azure
 Share

Recommended Posts

This is for the delete key, not that it matters. Basically when you click on the delete key it's supposed to check for the variable stored in the ini, and show an image accordingly. Here's what I have so far.

```
Case 2
                  If Call GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(Index), "Badgelevel") = 0 Then
Call CustomMenuShow(index , "Achievements" , "\GUI\minimenus.jpg" , 1 )
                  Else
Call CustomMenuShow(index , "Achievemens" , "\Badges\Bolder badge.bmp" , 1 )
                End If
      Exit Sub
```
I'd use a simple If/Then but I need to be able to add more pictures as the variable gets higher as I go.
Link to comment
Share on other sites

```
                  If GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(Index), "Badgelevel") = 0 Then
Call CustomMenuShow(index , "Achievements" , "\GUI\minimenus.jpg" , 1 )
                  Else
Call CustomMenuShow(index , "Achievemens" , "\Badges\Bolder badge.bmp" , 1 )
                End If
      Exit Sub
```You don't need a "Call" after "If"
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...