ok read it again and tryed min 5 combinations..mostly error were Index out of bounds or Invalid entity
PHP Code:
new p_ent[ 1 ]
p_ent[ 0 ] = current_player[ id ]
if( pressed[ id ][ g_button_id ] )
{
set_pev( g_ent[ p_ent[ 0 ] ], pev_groupinfo, pev( g_ent[ p_ent[0] ], pev_groupinfo ) | id ) //this is working ok
set_task( 4.0, "change_press", id, p_ent, sizeof( p_ent ) )
}
//and then
public change_press( id, p_ent[] )
{
set_pev( g_ent[ p_ent[ 0 ] ] , pev_groupinfo, pev( g_ent[ p_ent[0] ], pev_groupinfo ) & ~id )
}
any explanation why it doesnt work is welcomed..
__________________