Eugh use a code snippet plox
if string2$="Cut"
if picked>0
msg=0
if msg=0
msg=msgbox("WARNING!","Are you sure you want to do this?",MBYESNO)
endif
if msg=6
if object exist(picked)
hide object picked
endif
endif
endif
else
if msg=0 and picked>0
msgbox("WARNING!","You MUST select an object before cutting it!",MBOK)
endif
msg = 1
endif
Also, why do you have this in the code:
That means it'll always do what's inside that if statement...
I was also attempting to solve the problem but I can't see why this would display more than one msgbox each time its run. - Each call to a msgbox is separated by boolean opposite conditions (i.e. one is in the true part of an if statement and the other is in a false part). :S
We're gona need more code or a better explanation if you want this fixed.