Passing a variable by reference using SetTimerEx
#1

So I'm trying to pass a variable by reference to a function using SetTimerEx and I'm just getting a messy result.
I cannot find where I fucked up and I searched about this and didn't find a thing, Help?

PHP код:
new TEST 5;
forward decrease(&n);
public 
decrease(&n)
{
    
printf("%i"n);
}
public 
OnGameModeInit()
{
    
SetTimerEx("decrease"1000true"i"TEST);
    return 
1;

Console:
PHP код:
[22:19:2033554432
[22:19:2133554432
[22:19:2233554432
[22:19:2333554432
[22:19:2433554432
[22:19:2633554432
[22:19:2733554432
[22:19:2833554432
[22:19:2933554432
[22:19:3033554432
[22:19:3133554432
[22:19:3233554432
[22:19:3333554432 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)