its a global variable, i dont have to declare it have i? And if i should, it shouldn`t work should it?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if (ObjectiveNumber == 1){
oObjectives.SetView(20, 1);
oObjectives.Move(5, 235, 300, eBlock, eAnywhere);
}
else if (ObjectiveNumber == 0){
oObjectives.SetView(20, 0);
}
else if (ObjectiveNumber == 2){
oObjectives.SetView(20, 2);
oObjectives.Move(13, 220, 300, eNoBlock, eAnywhere);
}
oObjectives.Move(5, 235, 300, eBlock, eAnywhere);
Quote from: KhrisMUC on Sun 03/05/2009 14:49:21
You've been initializing the variable and setting it to one immediately before checking if it's one.
You need to declare it outside the function in order for it to retain its value.
function room_RepExec()
{
SetBackgroundFrame(0);
if (GetBackgroundFrame() ==1){
HotspotOn = 1;
}
if (GetBackgroundFrame() == 2){
HotspotOn = 2;
}
int DialogN = 1;
if (ClosedShelf == true){
if (DialogN == 1){
DialogN = 2;
dComputerBasement.Start();
}}}
if (ClosedShelf == true){
if (DialogN == 1){
dComputerBasement.Start();
DialogN = 2;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.110 seconds with 14 queries.