π Adress doesn't work
hello,
I try to make a trainer for SP, so...
I found these adresses :
main ammo : 0x1BAB3DC;
second ammo : 0x1BAB3E0;
main explosive : 0x1BAB3E8;
second explosive : 0x1BAB3EC;
I think it's the correct adress, cause when i change them with CE, it work.
But when i try to change it with my trainer, it doesn't work anymore...
So if someone can help me... would be great
I try to make a trainer for SP, so...
I found these adresses :
main ammo : 0x1BAB3DC;
second ammo : 0x1BAB3E0;
main explosive : 0x1BAB3E8;
second explosive : 0x1BAB3EC;
I think it's the correct adress, cause when i change them with CE, it work.
But when i try to change it with my trainer, it doesn't work anymore...
So if someone can help me... would be great

Code:
int ammoAdress = 0x1BAB3DC; // adress munition
int wantedValue = 40;
writeIntoMemory(ammoAdress, wantedValue);
void writeIntoMemory(int targetAdresse, int value)
{
WriteProcessMemory (hProcess, (LPVOID)targetAdresse, (LPVOID) &value, sizeof(&value), NULL);
}
