I'm aware of that, but what if I don't want all keys to work when any GUI is open, but just one key to work when a specific GUI is open?
EDIT: I gave it some thought, perhaps I could edit the line as:
[code]if ((IsGamePaused() == 1) && (GUI
- .Visible=false)) keycode=0;[/code]
Yes, just try to think of the logic depending on the actual needs.
For example if you need only key a, key b, key c to be recognised when GUI x is active (and of course when the game is not paused as well) and void the detection of the other keys when the game is paused you may try something like:
if ((IsGamePaused() == 1) && (GUI.Visible=false)) keycode=0;//your line, void all input when GUI x is not active and the game is paused.
if (keycode==a) blah;
if (keycode==b) blah bla;
if (keycode==c) blah bla bla;
if (IsGamePaused() == 1) keycode=0;//void the remaining checks even if GUI x is active
if (keycode == xxx) xxx.....
Since there're many posisbilities, it all depends on how you want it to be implemented, so there's no universal solution.