My text will not save, the files show up, but it will not

Game Editor comments and discussion.

My text will not save, the files show up, but it will not

Postby Sgt. Sparky » Sat Feb 03, 2007 9:05 pm

save...
when I open up te document it is a bunch of weird characters, I know that is the ways GE needs them so it can read them. but when I try to acces the saved text with the game I made it does nothing :( here is the draw actor event for one of the text actors
Code: Select all
if (Set == 1)
{
 Name = text;
 saveVars("Name", "MyNameAndPassword");
}


EDIT: by makslane
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 makslane » Sun Feb 04, 2007 2:01 am

If Name and text are strings, use the strcpy function to copy the values:

Code: Select all
strcpy(Name, text);
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Sgt. Sparky » Sun Feb 04, 2007 2:05 am

yeah, I know that much I figured it out. iI had the scrcpy stuff, but it would save but not load, but I fixed it :D
EDIT: you edited my post... :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


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron