| View previous topic :: View next topic |
| Author |
Message |
gmaster1440 Master Cheater
Reputation: 0
Joined: 26 Jun 2006 Posts: 365 Location: a,b,c++
|
Posted: Fri Jul 27, 2007 11:39 am Post subject: Visual Basic variable compile... help needed |
|
|
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 |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Fri Jul 27, 2007 12:10 pm Post subject: |
|
|
| u have player.health, try putting "player.health"
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Fri Jul 27, 2007 12:14 pm Post subject: |
|
|
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 |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Fri Jul 27, 2007 12:48 pm Post subject: |
|
|
| 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 |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Fri Jul 27, 2007 12:50 pm Post subject: |
|
|
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 |
|
 |
gmaster1440 Master Cheater
Reputation: 0
Joined: 26 Jun 2006 Posts: 365 Location: a,b,c++
|
Posted: Fri Jul 27, 2007 1:15 pm Post subject: |
|
|
heli attack trainer
_________________
c++ pointers... |
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Fri Jul 27, 2007 3:04 pm Post subject: |
|
|
| gmaster1440 wrote: | | heli attack trainer |
ok thanks
|
|
| Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Sat Jul 28, 2007 4:47 am Post subject: |
|
|
this is the code for my flash trainers:
| Code: |
command1_click()
*urflash name here*.setvariable("player.health", "100")
end sub |
|
|
| Back to top |
|
 |
|