Waiting for "I" key...

Code:
if(key_i)
      {	
          bag_i_counter = 1;
	  inv_open_bag(bag, 500, 0);
	  mouse_mode = 1;
	  while(key_i == 1) { wait(1); }
          while(key_i == 0) { wait(1); }
	  bag_i_counter = 0;
	  inv_close_bag(bag);
	  mouse_mode = 0;
        }
      }



And , you'll always see the same result(crash) until you post your inv_open_bag function or find out yourself why it is crashing. There is a problem (my guess...) with the method of calling the function.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201