Variable not increasing/decreasing Code: int BereichItem=1; if (GetAsyncKeyState (VK_UP)&1){ BereichItem ++ ; } if (GetAsyncKeyState (VK_DOWN)&1){ BereichItem -- ;} // if (BereichItem <= 1){ BereichItem = 4;} if (BereichItem >= 4){ BereichItem =4;} why does the BereichItem not change if i press the arrow keys up /down ? o.O
Where is the code. The int should be in globals ---------- Post added at 08:17 PM ---------- Previous post was at 08:17 PM ---------- Where is the code. The int should be in globals
thanks @flameswor10 forgot to write the int into globals xd thx alot for help im currently writing a base and this is needed für the menu controll ^^