Below is a quick script I made just to create a couple of basic buttons, with basic responses. Can anyone see what is wrong with this chunk of code just by glancing at it?
Code: Select all
begin FI_test
short button
if ( MenuMode == 1 )
return
endif
if ( OnActivate == 1 )
MessageBox "Choose an option.", "Yes", "No"
set button to GetButtonPressed
if ( button == 0 )
MessageBox "You chose yes."
elseif ( button == 1 )
MessageBox "You chose no."
endif
endif
end FI_test