Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status = 0;
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- }
- else {
- if (status == 0 && mode == 0) {
- cm.dispose();
- return;
- }
- if (mode == 1) {
- status++;
- }
- else {
- status--;
- }
- if (status == 0) {
- cm.sendOk("TEST");
- cm.dispose();
- }
- }
- }
Add Comment
Please, Sign In to add comment