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 


Visual Basic variable compile... help needed

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

Joined: 26 Jun 2006
Posts: 365
Location: a,b,c++

PostPosted: Fri Jul 27, 2007 11:39 am    Post subject: Visual Basic variable compile... help needed Reply with quote

If you anyone will be able to successfully help me out, that person will receive rep +. This is my problem:

My button command:

Code:
Private Sub Command1_Click()
f1.SetVariable(player.health,100);
End Sub


The compile error:
Code:

Expected: end of statement


Any help will be greatly appreciated

_________________
c++ pointers...
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Fri Jul 27, 2007 12:10 pm    Post subject: Reply with quote

u have player.health, try putting "player.health"
Back to top
View user's profile Send private message
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Fri Jul 27, 2007 12:14 pm    Post subject: Reply with quote

first you need a control called f1 like a command button.

at the top of your code put dim f1 to declare it then go to command1_click then type f1 = player.health but i dont think health is even a parameter.

also take out the ";" from "f1.SetVariable(player.health,100);"
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Fri Jul 27, 2007 12:48 pm    Post subject: Reply with quote

skate4lifee wrote:
first you need a control called f1 like a command button.

at the top of your code put dim f1 to declare it then go to command1_click then type f1 = player.health but i dont think health is even a parameter.


This shows how you know nothing about VB...

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Fri Jul 27, 2007 12:50 pm    Post subject: Reply with quote

sorry i dont really know any vb6 =P and im a beginner at vb 2005

was just trying to help, this section is for helping so i was attempting to help.

anyways what is he trying to make?
Back to top
View user's profile Send private message
gmaster1440
Master Cheater
Reputation: 0

Joined: 26 Jun 2006
Posts: 365
Location: a,b,c++

PostPosted: Fri Jul 27, 2007 1:15 pm    Post subject: Reply with quote

heli attack trainer
_________________
c++ pointers...
Back to top
View user's profile Send private message
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Fri Jul 27, 2007 3:04 pm    Post subject: Reply with quote

gmaster1440 wrote:
heli attack trainer


ok thanks
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sat Jul 28, 2007 4:47 am    Post subject: Reply with quote

this is the code for my flash trainers:
Code:

command1_click()
*urflash name here*.setvariable("player.health", "100")
end sub
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