Originally Posted by
HaruShots
Title says it all. How to make the hotkey I searched through the internet the results I get is the GetAsyncKeyState method. The full thing is
bool hackname = 0;
if (GetAsyncKeyState(VK_F3) & 1) {
Beep(1000, 500);
crosshair = !crosshair
}
I do not know what is the beep for but anyways I stole it from the web since I kept getting errors. Why is it the syntax error down there?
Oh yes, this: error C2143: syntax error : missing ';' before '{'. (Someone explain this)
This to :error C2447: '{' : missing function header (old-style formal list?)
And IntelliSense expected a declaration ??? (EXPLAIN Please)
You are missing a semi-column ( ; ) after ( crosshair = !crosshair ):
Code:
if (GetAsyncKeyState(VK_F3) & 1)
{
Beep(1000, 500);
crosshair = !crosshair; // semi-column added
}