Page 1 of 1

Error with text funtion(code) I ned help fixin' the script t

PostPosted: Sat Feb 03, 2007 6:09 pm
by Sgt. Sparky
-hat I have
Code: Select all
if (LoginName.text == Name & LoginPass.text == Pass)
{
 SendActivationEvent("Work");

what is the error?
here is a picture of the Error:

PostPosted: Sat Feb 03, 2007 7:36 pm
by makslane
You need the strcmp function to compare strings:


Code: Select all
if (strcmp(LoginName.text, Name) == 0 && strcmp(LoginPass.text, Pass) == 0)
{
 SendActivationEvent("Work");
}

PostPosted: Sat Feb 03, 2007 8:10 pm
by Sgt. Sparky
you should give yourself a free version of GE :D :lol: *grin*
1 + point for you! :D

PostPosted: Sat Feb 03, 2007 8:28 pm
by Sgt. Sparky
Argh! it did not work... again, now here is the message:
EDIT: nevermind it works! :D