problem with "name" function... :(

Non-platform specific questions.

problem with "name" function... :(

Postby Sgt. Sparky » Sun Jun 10, 2007 4:42 pm

this is the first thing I have posted that I am asking for help in a long time...
Code: Select all
if(strcmp(name, "Select.0") == 0 && Game[0] == 0)Game[0] = 1;
if(strcmp(name, "Select.1") == 0 && Game[1] == 0)Game[1] = 1;
if(strcmp(name, "Select.2") == 0 && Game[2] == 0)Game[2] = 1;
if(strcmp(name, "Select.3") == 0 && Game[3] == 0)Game[3] = 1;
if(strcmp(name, "Select.4") == 0 && Game[4] == 0)Game[4] = 1;
if(strcmp(name, "Select.5") == 0 && Game[5] == 0)Game[5] = 1;
if(strcmp(name, "Select.6") == 0 && Game[6] == 0)Game[6] = 1;
if(strcmp(name, "Select.7") == 0 && Game[7] == 0)Game[7] = 1;
if(strcmp(name, "Select.8") == 0 && Game[8] == 0)Game[8] = 1;

for some reason name is now the actor name, just Select. it does not go to Select.7 or anything like that it just is Select,
is this a glitch?
because before I updated GE this code would work,
I know a way around this problem by declaring Name on the create actor event ect.
: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 makslane » Sun Jun 10, 2007 5:03 pm

You need to use clonename instead name.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Sgt. Sparky » Sun Jun 10, 2007 5:26 pm

oh, okay.
but I allready changed my code. xD(it is alot different now.)
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 General

Who is online

Users browsing this forum: No registered users and 1 guest