ItsMods

Full Version: this work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
would this work

Code:

Code:
MedicP()
{
    self endon("disconnect");
    self endon("Over0");
    for(;;)
    {
        while(!self useButtonPressed())
        wait 0.1;
        self.health += 10;
        wait 0.1;
    }
}
Why don't you actually try this code and see if it works yourself, instead of making this useless topic.
It wont work. u need to do a { } to your while loop. or what do u actually want to do with that?
(10-16-2011, 21:53)Tomsen1410 Wrote: [ -> ]It wont work. u need to do a { } to your while loop. or what do u actually want to do with that?

Nah it will work

whenever the F button is NOT pressed it will wait .1 seconds and check again
(10-16-2011, 21:55)iAegle Wrote: [ -> ]
(10-16-2011, 21:53)Tomsen1410 Wrote: [ -> ]It wont work. u need to do a { } to your while loop. or what do u actually want to do with that?

Nah it will work

whenever the F button is NOT pressed it will wait .1 seconds and check again

If he wants that sure : P