azure Posted July 18, 2009 Author Share Posted July 18, 2009 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 ThenCall CustomMenuShow(index , "Achievements" , "\GUI\minimenus.jpg" , 1 ) ElseCall 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 More sharing options...
Bobosk Posted July 18, 2009 Share Posted July 18, 2009 ``` If GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(Index), "Badgelevel") = 0 ThenCall CustomMenuShow(index , "Achievements" , "\GUI\minimenus.jpg" , 1 ) ElseCall 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 More sharing options...
azure Posted July 18, 2009 Author Share Posted July 18, 2009 I had a feeling you'd still be around. Thanks for the help. Link to comment Share on other sites More sharing options...
Bobosk Posted July 18, 2009 Share Posted July 18, 2009 What, me around? never in a million years would i be caught on this site! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now