Passing a variable by reference using SetTimerEx
#3

format a string before printing it to get the right value.

PHP код:
new TEST 5
forward decrease(&n); 
public 
decrease(&n

    new 
str[128];
    
format(strsizeof(str), "%i"n);
    
printf(str); 

public 
OnGameModeInit() 

    
SetTimerEx("decrease"1000true"i"TEST); 
    return 
1

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)