xzasdSADDSADA Posted April 14, 2021 Share Posted April 14, 2021 I keep getting these errors when using this code (below) code: void MainLoop(const CSGOMemory& mem) { HWND hwnd = FindWindow(NULL, "csgo"); if (hwnd) { UpdatePlayerList(mem); int cacheTimer = 1337; while (true) { if (cacheTimer++ >= 200) { UpdatePlayerList(mem); cacheTimer = 0; } WallLoop(mem); AimLoop(mem); Sleep(1); } } else { MainLoop; } } errors : (pic) Quote Link to comment Share on other sites More sharing options...
xzasdSADDSADA Posted April 14, 2021 Author Share Posted April 14, 2021 (edited) error lies in the line thats HWND hwnd = FindWindow(NULL, "csgo"); Edited April 14, 2021 by xzasdSADDSADA typo Quote Link to comment Share on other sites More sharing options...
ONERIS Posted April 14, 2021 Share Posted April 14, 2021 (edited) 4 hours ago, xzasdSADDSADA said: I keep getting these errors when using this code (below) code: void MainLoop(const CSGOMemory& mem) { HWND hwnd = FindWindow(NULL, "csgo"); if (hwnd) { UpdatePlayerList(mem); int cacheTimer = 1337; while (true) { if (cacheTimer++ >= 200) { UpdatePlayerList(mem); cacheTimer = 0; } WallLoop(mem); AimLoop(mem); Sleep(1); } } else { MainLoop; } } errors : (pic) bro stop pasting something you don't understand and learn c++ https://www.learncpp.com/ Edited April 14, 2021 by ONERIS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.