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 2010] - Making value of variable infinity

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
OldGuy
Advanced Cheater
Reputation: 3

Joined: 25 Nov 2010
Posts: 58
Location: Iceland

PostPosted: Thu Nov 25, 2010 12:21 pm    Post subject: [Visual Basic 2010] - Making value of variable infinity Reply with quote

So... I know this is a stupid problem, right.. But..
I'm wondering how to...

Code:

Call Form1.AxShockwaveFlash1.SetVariable(currentgunammo, <insert infinity here>)


Help would be much appreciated Very Happy
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Thu Nov 25, 2010 12:38 pm    Post subject: Reply with quote

You don't make a variable infinite, you can only put the max value the variable can hold.
Back to top
View user's profile Send private message
OldGuy
Advanced Cheater
Reputation: 3

Joined: 25 Nov 2010
Posts: 58
Location: Iceland

PostPosted: Thu Nov 25, 2010 12:46 pm    Post subject: Reply with quote

Oh well, I guess this solves that then.
Thanks Very Happy
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Nov 25, 2010 8:06 pm    Post subject: Reply with quote

unless you're in java, in which case you can make it infinity Razz
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Nov 25, 2010 8:45 pm    Post subject: Reply with quote

HomerSexual wrote:
unless you're in java, in which case you can make it infinity Razz


this isn't a java thing, it's a floating point thing.

floats can become positively or negatively infinite.
Back to top
View user's profile Send private message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Thu Nov 25, 2010 9:05 pm    Post subject: Reply with quote

Pseudo code:
1. make a variable with a value of 1 (any number)
2. make a timer
3. timer: the value of your flash variable, make it any number + the variable yuo just made above.
4. make integer of your timer = 1

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Nov 26, 2010 3:50 am    Post subject: This post has 1 review(s) Reply with quote

Hey, I haven't been to CEF in some time; I remember leaving for some reason that I can no longer remember. Lets see what's up!

+=Marvin=+ wrote:
Pseudo code:
1. make a variable with a value of 1 (any number)
2. make a timer
3. timer: the value of your flash variable, make it any number + the variable yuo just made above.
4. make integer of your timer = 1


Oh... right.

/me closes tab.
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Fri Nov 26, 2010 10:05 am    Post subject: Reply with quote

Set the variable to what you like and just never decrement it.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
UniversalProductions
Cheater
Reputation: 2

Joined: 19 Nov 2010
Posts: 30

PostPosted: Mon Dec 13, 2010 6:18 pm    Post subject: Reply with quote

If what you are looking for is to set random values to the variable or as in 'Random' in this case to infinite apply this in a timer

Code:

                Random Random = new Random();
                int R = Random.Next(999998, 999999);  //Only '6' characters are allowed!
                this.Flash1.SetVariable("currentgunammo", (R).ToString())


Unfortunately I don't know VB the language itself, but if some kind person was to translate it; that would solve your problem..I hope. Very Happy
Back to top
View user's profile Send private message
XSV
GTH Moderator
Reputation: 9

Joined: 12 Oct 2005
Posts: 1007
Location: USA

PostPosted: Mon Dec 13, 2010 7:11 pm    Post subject: Reply with quote

Flyte wrote:
Hey, I haven't been to CEF in some time; I remember leaving for some reason that I can no longer remember. Lets see what's up!

+=Marvin=+ wrote:
Pseudo code:
1. make a variable with a value of 1 (any number)
2. make a timer
3. timer: the value of your flash variable, make it any number + the variable yuo just made above.
4. make integer of your timer = 1


Oh... right.

/me closes tab.


lol.

Set Variable to X.
Check if x<10 or a certain number, after an event(click, button hit,etc).
Reset to X.

_________________
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