hi guys..i know set task parameters-topics have been made hundred times, but or im stupid or idk i couldnt implement these solutions in my case, what is the thing:
PHP Code:
ent_change( id )
{
new p_ent = g_ent[ current_player[ id ] ]
if( pressed[ id ][ g_button_id ] )
{
set_pev( p_ent, pev_groupinfo, pev( p_ent, pev_groupinfo ) | id );
set_task( 4.0, "change_press", id )
}
}
public change_press( id )
{
set_pev( g_ent[ current_player[ id ]] , pev_groupinfo, pev( g_ent[ current_player[ id ]], pev_groupinfo ) & ~id )
}
so i wanna send in set_task this: p_ent, so change_press will cache and use that..any help is welcomed, also if this matters: new g_ent[ 500 ]
__________________