This is then the executing code in my init.sqf located at around line 60 (not at the end of the file).
if (!isDedicated) then {
[] execVM "scripts\custom_monitor.sqf";
Here (count playableUnits) should be displaying server players. If I am correct this should be being fetched from my playerstats.sqf? However for some reason the vaule is ALWAYS 1 for any normal player.
For admins however it works perfectly and changes as it should.
Question
RisingDead
Hi there,
I was just wondering if anyone can help with how to display/fetch the servers player count?
I am fairly certain that to fetch this value I need to use:
However it isnt working in my debug monitor.
The code for this is as follows:
This is then the executing code in my init.sqf located at around line 60 (not at the end of the file).
Here (count playableUnits) should be displaying server players. If I am correct this should be being fetched from my playerstats.sqf? However for some reason the vaule is ALWAYS 1 for any normal player.
For admins however it works perfectly and changes as it should.
Can anyone explain what Is wrong here?
Everything else in the monitor works perfectly
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