Quote:
Originally Posted by fysiks
That could cause race conditions if amx_test is used by someone else (or the same person; different problem) before it has finished printing.
I believe you can send string through a set_task like:
Code:
set_task(time, "function", id+offset, string, sizeof(string), "a", 3)
public function(yourstring[])
{
// . . .
}
|
You can pass an array and integer to the called function.
PHP Code:
new szText[] = "hi hello";
set_task( 1.0 , "TheFunc" , id , szText , sizeof( szText ) , "a" , 3 );
public TheFunc( arrData[] , id )
{
client_print( id , print_chat , "Msg=%s" , arrData );
}
__________________