var Message = "Hoi " + Origin +". \n Hier komt zo te staan wat je kan doen:\n 1. Niks\n 2. Ook niks\n 3. Nog steeds niks."
ChatWnd.SendMessage(Message);
gepraat[Origin] = true
}
}
but now i want after 10 secs, that the gepraat[Origin] value gets resetted to false again. does anybody know how to implent the AddTimer function?
var Message = "Hoi " + Origin +". \n Hier komt zo te staan wat je kan doen:\n 1. Niks\n 2. Ook niks\n 3. Nog steeds niks."
ChatWnd.SendMessage(Message);
gepraat[Origin] = true;
MsgPlus.AddTimer('reset',10000);
}
}
function OnEvent_Timer(sTimerId){
if(sTimerId == 'reset'){ gepraat[Origin] = false; }
}
var Message = "Hoi " + Origin +". \n Hier komt zo te staan wat je kan doen:\n 1. Niks\n 2. Ook niks\n 3. Nog steeds niks."
ChatWnd.SendMessage(Message);
gepraat[Origin] = true;
MsgPlus.AddTimer('reset',10000);
}
}
function OnEvent_Timer(sTimerId){
if(sTimerId == 'reset'){ gepraat[Origin] = false; }
}
Should do the trick...
i get this error:
> Fout detected at line 21: 'Origin' is not defined.
(Code: -2146823279)