Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ListBox issue

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
asianking
Expert Cheater
Reputation: 0

Joined: 25 Jun 2008
Posts: 109

PostPosted: Sat Jul 26, 2008 12:44 pm    Post subject: ListBox issue Reply with quote

Can someone tell me why this isn't working:

Listbox 1 contain:
Sword 1
Sword 2

Code:
Private Sub Listbox1_click()
if listbox1.selecteditem = "Sword 1" Then
Call flash.setvariable = ("player.weapon", 5)

elseif listbox2.selecteditem = "Sword 2" Then
Call flash.setvariable = ("player.weapon", 6)

I created listbox and what i really want is... if someone click on Sword 1 on listbox 1, then the player gets that weapon. I see Sword 1 and Sword 2 on listbox, but when I click, nothing happen. I test the variable with a button and it work, but I want to do it with the listbox. I'm using Visual basic 2005. Help will be appreciate..
Back to top
View user's profile Send private message MSN Messenger
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Sat Jul 26, 2008 1:25 pm    Post subject: Reply with quote

Are you sure that ListBox.SelectedItem is a string?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites