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

Game Editor comments and discussion.

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

Postby Sgt. Sparky » Sat Feb 03, 2007 6:09 pm

-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:
Attachments
ErrorPicture.png
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby makslane » Sat Feb 03, 2007 7:36 pm

You need the strcmp function to compare strings:


Code: Select all
if (strcmp(LoginName.text, Name) == 0 && strcmp(LoginPass.text, Pass) == 0)
{
 SendActivationEvent("Work");
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Sgt. Sparky » Sat Feb 03, 2007 8:10 pm

you should give yourself a free version of GE :D :lol: *grin*
1 + point for you! :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Sat Feb 03, 2007 8:28 pm

Argh! it did not work... again, now here is the message:
EDIT: nevermind it works! :D
Attachments
ErrorPicture2.png
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron