if (button == 3) { // look
SetCursorMode(3);
SetGlobalInt(80,8);
}
if ((button == 6) && (game.top_inv_item < game.num_inv_items - game.num_inv_displayed)) {
// SCROLL DOWN
game.top_inv_item = game.top_inv_item + game.items_per_line;
}
if ((button == 7) && (game.top_inv_item > 0)){
// SCROLL UP
game.top_inv_item = game.top_inv_item - game.items_per_line;
}
if (interface == 1) { //The quit gui
if (button==3) {
QuitGame (0);
}
if (button==2) {
GUIOff (1);
}
}
}
}
I put it this code and it works now.
But for some reason the quit gui dosent work now, you click on buttons and they just stand there. Know why?
SetCursorMode(3);
SetGlobalInt(80,8);
}
if ((button == 6) && (game.top_inv_item < game.num_inv_items - game.num_inv_displayed)) {
// SCROLL DOWN
game.top_inv_item = game.top_inv_item + game.items_per_line;
}
if ((button == 7) && (game.top_inv_item > 0)){
// SCROLL UP
game.top_inv_item = game.top_inv_item - game.items_per_line;
}
if (interface == 1) { //The quit gui
if (button==3) {
QuitGame (0);
}
if (button==2) {
GUIOff (1);
}
}
}
}
I put it this code and it works now.
But for some reason the quit gui dosent work now, you click on buttons and they just stand there. Know why?