Jump to content
  • 0

how to (if else then) in init.sqf ?


meanbeandk

Question

hi

I am trying to get "if and then and else" to work in my init.sqf but cant get it to work

 

if ((getPlayerUID player) in ["123456789","987654321"]) then {

		p2_newskin = compile preprocessFileLineNumbers "Loadout.sqf";
		waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
		if (dayzPlayerLogin2 select 2) then {player spawn p2_newskin;};

	}else{
	
		sexcheck = compile preprocessFileLineNumbers "scripts\sexcheck.sqf";
		waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
		if (dayzPlayerLogin2 select 2) then{
		player spawn sexcheck;
	};

};

don't know what i am doing wrong or if i can make it work.

Hope some one can help me :-)

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Your checks look fine. Have  you got any errors in client rpt or server rpt?

Client RPT Is located in:

C:\Users\Maddin\AppData\Local\ArmA 2 OA

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...