You have to indent your code properly.
Code:
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR );
register_forward( FM_PlayerPreThink, "prethink",0 );
}
public prethink( id )
{
static button,oldbuttons;
button = pev( id, pev_button );
oldbuttons = pev( id, pev_oldbuttons );
if( button & IN_USE && !(oldbuttons & IN_USE) )
{
console_print( id,"USE DOWN");
}
else if( oldbuttons & IN_USE && !( button & IN_USE ) )
{
console_print( id, "USE UP" );
}
}
__________________