Passing a variable by reference using SetTimerEx
#8

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You can if you pass the correct address, for example by using ref from amx_memory
PHP код:
SetTimerEx("decrease"1000true"i"ref(TEST)); 
SetTimerEx is just limited to global / static variables, local variables would be out of scope
CallLocalFunction works also with local ones
Passing the address to the function using ref fixed it, I guess the function kept taking "TEST"'s value and considered it as an address which just messed up.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)