![]() Need a counter for a specific contact - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Need a counter for a specific contact (/showthread.php?tid=86018) Need a counter for a specific contact by chadchoud on 09-18-2008 at 08:04 PM
Well I'm checking bad words from users. code: Ok my problem is with the global variable. Say contact X says this bad word, then contact Y says it, Y gets blocked because times gets equal 2 at Y's message. What I need to know is if it' possible fr every contact to hold its own counter. Sorry if my idea is a bit noob, but it will let me understand other concepts. Thank you. RE: Need a counter for a specific contact by MeEtc on 09-18-2008 at 08:17 PM I would recommend using an array to hold the count data. RE: RE: Need a counter for a specific contact by chadchoud on 09-18-2008 at 08:19 PM
quote: Can you please explain how? Arrays don't really exist in the MPLdocs I have (the chm file). RE: Need a counter for a specific contact by MeEtc on 09-18-2008 at 08:30 PM
No, an array structure has nothing to do with the messenger plus documentation, its in the JScript documentation from Microsoft. quote: RE: Need a counter for a specific contact by chadchoud on 09-18-2008 at 08:56 PM
Fine. I created code:outside the function then inside it I replaced times with count[Contact.Email] so that it becomes: code:But code:prints: -1.#IND What's wrong now? Edit: Solved. Had to check if it's != null. ![]() |