if ( onActivate ) set timer to ( timer + getsecondspassed )endifif ( timer > 2 ) messagebox "activate" activateendif
Whats wrong with it?
if ( onActivate ) set timer to ( timer + getsecondspassed )endifif ( timer > 2 ) messagebox "activate" activateendif
if ( onActivate ) set timer to ( timer + getsecondspassed )endifif ( timer > 2 ) messagebox "activate" activateendif
short statefloat timerif ( MenuMode == 1 ) Returnendifif ( OnActivate == 1 ) set state to 1 Returnendifif ( state == 0 ) Returnendifset timer to ( timer + getsecondspassed )if ( timer >= 2 ) MessageBox, "Activate" set timer to 0 set state to 0endif