quote:
Originally posted by DennisMartijn
oke thanks, and how would this code (OnEvent_ContactSignin(
[string] Email
);
) be when this email adress is filled in: dennis.kleinman@hccnet.nl?
does there has to be some '' thingies in it? yes i know i can find it in the library, thanks for that but not right now...
Just to answer your question...
If you wanted something to trigger when dennis.kleinman@hccnet.nl signs in, then you would use the following code...
code:
OnContact_Signin(Email) {
if (Email = "dennis.kleinman@hccnet.nl") {
//the code that is triggered
}
}
I am going to assume that you know how to do some basic programming in other languages.
When you declare a function you have parameters, for example, in php:
code:
<?
function ExampleFunction($variable) {
echo $variable;
}
?>
then you could call the function as so
code:
ExampleFunction("hello")
and it would echo the world hello.
So OnEvent_ContactSignin is triggered when a contact signs in, and so messenger plus would run your code and do this:
code:
OnEvent_ContactSignin("dennis.kleinman@hccnet.nl")
then your code would be triggered and dennis.kleinman@hccnet.nl would become the variable Email.
I hope that helps.