Jump to content
  • 0

Need some help with server_playerSetup.sqf


glowpowner

Question

Hello all im trying to find out how to fix this error

18:15:42 Error in expression <        _primary select 1;
_stats =        _primary select 2;
_state =        _primary select 3;
_>
18:15:42   Error position: <select 2;
_state =        _primary select 3;
_>
18:15:42   Error Zero divisor
18:15:42 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 64

this is the server_playerSetup.sqf code between line 60 and 71

//Wait for HIVE to be free
//diag_log ("SETUP: RESULT: Successful with " + str(_primary));

_medical =		_primary select 1;
_stats =		_primary select 2;
_state =		_primary select 3;
_worldspace = 	_primary select 4;
_humanity =		_primary select 5;
_lastinstance =	_primary select 6;
//Soul start: SC Edit >>> loading player cash into variable / overwriting default 0 value with returned value.
_cashMoney = 	_primary select 7;
//Soul end: SC Edit

the player data gets deleted why idk never had this before and dint change anything in there

 

so after restart or if a player rejoins he data gets deleted and he respawns as fresh spawn any idea with this is and how to fix it ?

 

the scripts im running =

 

cctv

door management

DZGM

lift/tow

Plotmanagement

single currency script 2.0

and some others :P

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

i had the same prob...and it was caused by the player_switchmodel.sqf which is called at spawn by player_monitor.fsm..

when  i tried to connect to my testserver, i lost my CharacterID and wasnt able to connect any more(i forgot to define _CharID as private in the _switchUnit function)..so Check out player_switchmodel.sqf.. Hope that helps

Link to comment
Share on other sites

  • 0

Check the fix on page 3

dint work still the same issue

 

i still get this

13:59:05 Error in expression < = _primary select 1;
_stats = _primary select 2;
_state = _primary select 3;
_w>
13:59:05   Error position: <select 2;
_state = _primary select 3;
_w>
13:59:05   Error Zero divisor
13:59:05 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 56
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...