freeze to 0
Soryy to bother u guys but I'm having a problem with warrock freezing when I try to use this nobounds function and help would be aprreciated.
Here are my addies
#define ADR_BOUNDS_1 0x00C5DF9C
#define ADR_BOUNDS_2 0x00C5DFA0
Here is my function
void nobound() // no boundries
{
*(float*) ADR_BOUNDS_1 = 5000000;
*(float*) ADR_BOUNDS_2 = 5000000;
}
freeze to 0
There are five possible operations for any army. If you can fight, fight; if you cannot fight, defend; if you cannot defend, flee; if you cannot flee, surrender; if you cannot surrender, die." - Sima Yi
Code:if (NoBounds) { long t=0; unsigned long Protection; VirtualProtect((void*)BOUNDS1, sizeof(t), PAGE_READWRITE, &Protection); memcpy((void*)BOUNDS1, &t , sizeof(t)); VirtualProtect((void*)BOUNDS1, sizeof(t), Protection, 0); VirtualProtect((void*)BOUNDS2, sizeof(t), PAGE_READWRITE, &Protection); memcpy((void*)BOUNDS2, &t , sizeof(t)); VirtualProtect((void*)BOUNDS2, sizeof(t), Protection, 0); }
Thanks worked great!