RIGHT is a predefined variable, 2 if I remember right... and if you have a if (button==RIGHT) in a GUI script (interface_click) it checks if button number 2 is clicked.
You need to put the code in this form:
in start of Global Script:
int rmbdn;
and in rep_ex:
if ((IsButtonDown(RIGHT)) && (rmbdn == 0)) {
SetNextCursorMode();
rmbdn = 1;
} else rmbdn = 0;
You need to put the code in this form:
in start of Global Script:
int rmbdn;
and in rep_ex:
if ((IsButtonDown(RIGHT)) && (rmbdn == 0)) {
SetNextCursorMode();
rmbdn = 1;
} else rmbdn = 0;