meanbeandk Posted May 28, 2015 Report Share Posted May 28, 2015 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 More sharing options...
0 Guest Posted May 28, 2015 Report Share Posted May 28, 2015 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 More sharing options...
0 meanbeandk Posted May 29, 2015 Author Report Share Posted May 29, 2015 got it to work. Dont know what i made wrong :) Link to comment Share on other sites More sharing options...
Question
meanbeandk
hi
I am trying to get "if and then and else" to work in my init.sqf but cant get it to work
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now