quote:
Originally posted by alexp2_ad
code:
var gepraat = Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
if(MessageKind == 1 && Messenger.MyStatus == 7 && Messenger.MyName != Origin && gepraat[Origin] != true)
{
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)