Quote:
Originally Posted by kadet.89
Dragokas, thanks, it works.
I have another question.
I read and then change int argument #5:
PHP Code:
PrintToServer("Old value: %i", index, DHookGetParam(hParams, 5)); //"Old value: 38"
DHookSetParam(hParams, 5, 42);
PrintToServer("New value: %i", index, DHookGetParam(hParams, 5)); //"New value: 38"
Why does it show 38 after the value is changed?
|
The value is not changed until after the hook, so you can't use this method to retrieve a changed param.
__________________