26.06.2011, 07:13
Код:
new tickid; public OnGameModeInit() { tickid = CreateThread( "MyFunction" ); } public OnGameModeExit() { DestroyThread( tickid ); } public MyFunction( threadid ) { printf( "tick(%d)...", threadid ); SleepThread( 1000 ); }
![Cheesy](images/smilies/biggrin.png)
But how does the CreateThread know what parameters to pass to the function?