What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Double counting?

Double counting?
Author: Message:
hpzone
New Member
*


Posts: 4
Joined: Jun 2006
O.P. Double counting?
Very strange,


code:
var Verzonden = 0;
var Ontvangen = 0;

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
Verzonden++;
Messenger.MyPersonalMessage = "Aantal verzonden berichten in deze sessie: " + Verzonden + " Aantal ontvangen berichten: " + Ontvangen;
}

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{

Ontvangen++;
Messenger.MyPersonalMessage = "Aantal verzonden berichten in deze sessie: " + Verzonden + " Aantal ontvangen berichten: " + Ontvangen;
   
}


When Verzonden is upgraded by one, it automaticly upgrades the Ontvangen variable, so the statics of the counter are really unreliable :) How to fix, or what to fix? :)
06-27-2006 11:27 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Double counting? - by hpzone on 06-27-2006 at 11:27 AM
RE: Double counting? - by Ezra on 06-27-2006 at 11:49 AM
RE: Double counting? - by Mnjul on 06-27-2006 at 11:54 AM
RE: Double counting? - by hpzone on 06-27-2006 at 12:06 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On