How to assign

Posts 1–5 of 5 · Page 1 of 1
How to assign
So in this thread giniyati gave us the code to turn on / off the wallhack
So how can i assign a key ?
could anybody post that ?
Learning c++ and need help.
Code:
bool wallhack = false ;

if(GetAsyncKeyState(VK_F5))    {wallhack=!wallhack;

if(wallhack)   {

   // WallHack code ON

}
else

// WallHack code OFF
}
Quote Originally Posted by koshek View Post
Code:
bool wallhack = false ;

if(GetAsyncKeyState(VK_F5))    {wallhack=!wallhack;

if(wallhack)   {

   // WallHack code ON

}
else

// WallHack code OFF
}
Noob, you missed 1x } and 1x {

Code:
bool wallhack = false;

if(GetAsyncKeyState(VK_F5))    {wallhack=!wallhack;}

if(wallhack)   
{
   // WallHack code ON
}
else
{
   // WallHack code OFF
}
Quote Originally Posted by Deadeys View Post
Noob, you missed 1x } and 1x {

Code:
bool wallhack = false;

if(GetAsyncKeyState(VK_F5))    {wallhack=!wallhack;}

if(wallhack)   
{
   // WallHack code ON
}
else
{
   // WallHack code OFF
}
No you're the noob can make it without { & } in state of you make one line after else
I guess this is answered
Closed.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us