View previous topic :: View next topic |
Author |
Message |
OldGuy Advanced Cheater Reputation: 3
Joined: 25 Nov 2010 Posts: 58 Location: Iceland
|
Posted: Thu Nov 25, 2010 12:21 pm Post subject: [Visual Basic 2010] - Making value of variable infinity |
|
|
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
|
|
Back to top |
|
|
AtheistCrusader Grandmaster Cheater Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Thu Nov 25, 2010 12:38 pm Post subject: |
|
|
You don't make a variable infinite, you can only put the max value the variable can hold.
|
|
Back to top |
|
|
OldGuy Advanced Cheater Reputation: 3
Joined: 25 Nov 2010 Posts: 58 Location: Iceland
|
Posted: Thu Nov 25, 2010 12:46 pm Post subject: |
|
|
Oh well, I guess this solves that then.
Thanks
|
|
Back to top |
|
|
HomerSexual Grandmaster Cheater Supreme Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Thu Nov 25, 2010 8:06 pm Post subject: |
|
|
unless you're in java, in which case you can make it infinity
_________________
|
|
Back to top |
|
|
hcavolsdsadgadsg I'm a spammer Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Nov 25, 2010 8:45 pm Post subject: |
|
|
HomerSexual wrote: | unless you're in java, in which case you can make it infinity |
this isn't a java thing, it's a floating point thing.
floats can become positively or negatively infinite.
|
|
Back to top |
|
|
M.CORP Grandmaster Cheater Supreme Reputation: 28
Joined: 28 Oct 2009 Posts: 1010
|
Posted: Thu Nov 25, 2010 9:05 pm Post subject: |
|
|
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
_________________
|
|
Back to top |
|
|
Flyte Peanuts!!!! Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Nov 26, 2010 3:50 am Post subject: |
|
|
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 |
|
|
AhMunRa Grandmaster Cheater Supreme Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Fri Nov 26, 2010 10:05 am Post subject: |
|
|
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 |
|
|
UniversalProductions Cheater Reputation: 2
Joined: 19 Nov 2010 Posts: 30
|
Posted: Mon Dec 13, 2010 6:18 pm Post subject: |
|
|
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.
|
|
Back to top |
|
|
XSV GTH Moderator Reputation: 9
Joined: 12 Oct 2005 Posts: 1007 Location: USA
|
Posted: Mon Dec 13, 2010 7:11 pm Post subject: |
|
|
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 |
|
|
|