pls help!!! my inventory window does not close

Started by dikla, Tue 27/07/2004 22:16:26

Previous topic - Next topic

dikla

I tested my game and suddenly the inventory stuck.
i can open it and even look and use inventory items on inventory items, but when i want to close the buttons are not reacting. it's stuck. i tried everything. i tried to check the global script but it's ok and i did not touch it. i try the inventory gui (and checked with another game parameters of gui - but nothing. its ok). pls help me because now i am in PANIC.
dikla

Fabiano

hmn. the "OK" button from the inventory GUI are scripted to close it?
Yeah, yeah, It happens. A lot.

dikla

#2
I dont understand what you mean?
it was ok all the time i tried to test it.
this is the script in gloabl script
if (button == 3) {
      // They pressed the OK button, close the GUI
      GUIOff (INVENTORY);
      SetDefaultCursor();
    }

monkey0506

just a question, is that script in on_interface_click?? Just wondering... If so I don't know what the problem is...

Gilbert

Like asked in the other thread, is that button set to "Run Script" on clicks? Had you checked that?
Otherwise it can just be some error in putting teh braces in the codes which prevents that part from working.

dikla

i double check the "run script" and its ok. the command for close inventory is in the above post and if brace is missing theÃ,  ags would not let me close and save, isnt it?
if you like i will type and paste whats written in my global script concerning the inventory.
tx

dikla

bty monkey 0506 indeed on ifterface click there was a slider ugi but now i deleted it from all the places (even the commands within the room). may be it would help.

by your help fixed it. i just copied text from another new game and paste it, and now its ok. tks

Gilbert

By errors in placement of braces I didn't just mean missing a brace or two, it can also be an structural error (like say:
if (a==1){
  //blah bla
  if (a==2) {
    //bla bla
  }
}

That teh (a==2) part will never be executed.)
Also, if you delete something the GUI buttons or GUI number may be rearranged, so you may need to fix the codes.

Anyway, glad to hear your problem was fixed.

SMF spam blocked by CleanTalk