the script in my post is not the script which causes the error.
just take a look at the error message. the file path is invalid.
the "wrong" script from the error message is:
void debug(const string text){
AddDebugMessage(text,false);
}
const int mustRounds = 3;
int rounds = 0;
bool right1 = false;
bool right2 = false;
void rightround(string &in asParent, string &in asChild, int alState){
if (asChild == "ScriptRight_1"){
debug("right 1 , right2 == "+right2); // line 112
if (!right2){
right1 = true;
}else{
rounds--;
right2 = false;
}
}
if (asChild == "ScriptRight_2"){
debug("right 2 , right1 == "+right1); // line 121
if (!right1){
right2 = true;
}else{
rounds++;
right1 = false;
}
}
debug(rounds+" / "+mustRounds);
if (rounds >0){
SetEntityActive("changeWall_1",true);
SetEntityActive("changeWall_2",false);
if(rounds >= mustRounds){
SetEntityActive("changeWall_3",false);
SetEntityActive("changeDoorframe_1",true);
SetEntityActive("changeDoorway_1",true);
}else{
SetEntityActive("changeWall_3",true);
SetEntityActive("changeDoorframe_1",false);
SetEntityActive("changeDoorway_1",false);
}
}else{
SetEntityActive("changeWall_1",false);
SetEntityActive("changeWall_2",true);
SetEntityActive("changeWall_3",true);
SetEntityActive("changeDoorframe_1",false);
SetEntityActive("changeDoorway_1",false);
}
}
but, the whole story with all its script files is working 100% on my pc. the problem is that it does not work on the other computer.