Jump to content
  • 0

URGENT!!! Waiting for host


FragZ

Question

This has been fixed, 

		class Item5
		{
            position[]={8905.9863,10527.449,1.5863237};
            a=100;
            b=150;           
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome2";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome\puffmellowdome.sqf"";";
            expDesactiv="terminate dome; titleText [""You are now out of restricted area, you may proceed playing."", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };
    };
};

I will also add
My irondome.sqf

 

// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
 if ((getPlayerUID player) in ["ICHAGNEDTHEUIDS DONT WORRY"]) exitWith { 
titleText ["Welcome to Brandon's castle", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", name player], "PLAIN DOWN"]; // welcomes you with your name
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, please leave or death will occur.", "PLAIN DOWN", 3];
sleep 5;
titleText ["If you do not leave, actions will be taken.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, fine. A ghost will rip your heart off your body!", "PLAIN DOWN", 3];
sleep 8;
titleText ["You have 5 seconds left before execution.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Goodnight", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

change this to
 

class Item4
		{
			position[]={12944.227,210.19823,12766.889};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonehero";
			expCond="(player distance zonehero) < 100;";
			expActiv="canbuild = false; inTraderCity = ""Hero Trader"";";
			expDesactiv="canbuild = true; inTraderCity = ""Any"";";
			class Effects
			{
            };
		};
		class Item5
		{
            position[]={8905.9863,10527.449,1.5863237};
            a=100;
            b=150;           
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome2";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome\puffmellowdome.sqf"";";
            expDesactiv="terminate dome; titleText [""You are now out of restricted area, you may proceed playing."", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
		};
	};

this

                class Item4
		{
			position[]={12944.227,210.19823,12766.889};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonehero";
			expCond="(player distance zonehero) < 100;";
			expActiv="canbuild = false; inTraderCity = ""Hero Trader"";";
			expDesactiv="canbuild = true; inTraderCity = ""Any"";";
			class Effects
			{
                        };
		};
		class Item5
		{
                        position[]={8905.9863,10527.449,1.5863237};
                        a=100;
                        b=150;           
                        activationBy="WEST";
                        repeating=1;
                        interruptable=1;
                        age="UNKNOWN";
                        name="dome2";
                        expCond="(vehicle player) in thislist;";
                        expActiv="dome = [] execVM ""dome\puffmellowdome.sqf"";";
                        expDesactiv="terminate dome; titleText [""You are now out of restricted area, you may proceed playing."", ""PLAIN DOWN"", 3];";
                        class Effects
                        {
                        };
		};
	};

Link to comment
Share on other sites

  • 0

More like this:

		class Item5
		{
            position[]={8905.9863,10527.449,1.5863237};
            a=100;
            b=150;           
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome2";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome\puffmellowdome.sqf"";";
            expDesactiv="terminate dome; titleText [""You are now out of restricted area, you may proceed playing."", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };
    };
}; <-- you were missing this closing bracket for class Mission
Link to comment
Share on other sites

  • 0

 

More like this:

		class Item5
		{
            position[]={8905.9863,10527.449,1.5863237};
            a=100;
            b=150;           
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome2";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome\puffmellowdome.sqf"";";
            expDesactiv="terminate dome; titleText [""You are now out of restricted area, you may proceed playing."", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };
    };
}; <-- you were missing this closing bracket for class Mission

OOOOOOOH OK I see now. Thank you very much. I will leave feedback on how it went after.

Link to comment
Share on other sites

  • 0

@FragZ: for the next time something like this happens:

 

"In my RPT I get this:   ErrorMessage: File mpmissions\__cur_mp.chernarus\mission.sqm, line 1470: /Mission/: Missing '}'"

 

In file mission.sqm, line 1470 there is a } missing. As 1470 is the end of your file it's a good start to try if it's missing there ;))

 

That does NOT mean that it is really missing there from the logic you may want to achieve...it could also be missing somewhere before. But at least the message shows you clearly that 1 open bracket still needs to be closed which has not been done until the end of the file. Instead of one } missing it could also be one { too much somewhere (type or something).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...