Just do
walls = !walls;
before the if statement.
this is my main code:
Does this look right?Code:void main() { bool walls = false; while(true) { if(GetAsyncKeyState(VK_INSERT)<0){ if(walls){ memcpy((LPVOID)0x57207A, "\x6A\x01", 2); walls = false; } else { memcpy((LPVOID)0x57207A, "\x6A\x00", 2); walls = true; } } } }
Because when I first press insert the glass walls activate then when I press again it deactivates.
On the third attempt, it deactivates again and fourth attempt it deactivates again. After it activates... So screwed...
How can I make it more consistent in activation?
Am i placing my bool walls = false; in the wrong place?
Last edited by ppl2pass; 07-10-2010 at 01:37 PM.
Just do
walls = !walls;
before the if statement.
ppl2pass (07-10-2010)
nvm found it. it means if walls is not equal to walls.
Doesnt make sense. :O HUH?
Last edited by ppl2pass; 07-10-2010 at 02:02 PM.
btw is it bool walls = !walls; ?
Cause u have to define the variable?
Why would you declare it again ? You already have before the while loop.
Code:void main() { bool walls = false; while(true) { if(GetAsyncKeyState(VK_INSERT)<0){ walls = !walls; if(walls){ memcpy((LPVOID)0x57207A, "\x6A\x01", 2); } else { memcpy((LPVOID)0x57207A, "\x6A\x00", 2); } Sleep(300); } Sleep(10); } }
ppl2pass (07-10-2010),supercarz1991 (07-10-2010)
noob coders....
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
am i? you dont know me kid
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
https://www.mpgh.net/forum/31-c-c/126817-go-site.html
Yeah, you are. You're pathetic argument with me in this thread gave me enough reason to disrespect you. Don't go around calling people noob coders when you hardly know anything yourself.
why do you freaking always go back to that???? i can code, so idc what you think. talk to whit, and everyone else
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
from what i've seen so far...i'd rather have zman help me out then some1 who can't let a small argument in an online forum thread go...
thank you. void has something against me for some reason. idk why, maybe cause i can out code him?
let me know if you need help
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
wait...are you Gordon? as in sys?
if u are, then hell yeah u can out code him lol
maybe....you can decide
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-