Hi, i have two code blocks in my "fn_SelfActions.sqf " that both use the variable "s_player_settings". One is for setting view distance and here is that section of code with the line numbers:
Line 18 //-----------------------VIEW DISTANCE----------------------------
Line19
Line20 if ((speed player <= 1) && _canDo) then {
Line21 if (s_player_settings < 0) then {
Line22 s_player_settings = player addaction [("" + ("Set Viewdistance") +""),"mission_settings\create.sqf","",5,false,true,"",""];
Line23 };
Line24 } else {
Line25 player removeAction s_player_settings;
Line25 s_player_settings = -1;
Line27 };
Line28 //---------------------VIEW END---------------------------------------
The second is for a server menu script, again with line numbers.
Line 119 // IT07's Server Menu script
Line 120 if((speed player <= 1) && _canDo) then {
Line 121 if (s_player_servermenu < 0) then {
Line 122 s_player_servermenu = player addAction [("" + ("Server Menu") +""),"scripts\OnLineHelp\IT_Modules\menuLauncher.sqf","",-1,false,false,"", ""];
Line 123 };
Line 124 } else {
Line 125 player removeAction s_player_servermenu;
Line 126 s_player_servermenu = -1;
Line 127 player removeAction s_player_servermenu1;
Line 128 player removeAction s_player_servermenu2;
Line 129 player removeAction s_player_servermenu3;
Line 130 player removeAction s_player_servermenu4;
Line 131 player removeAction s_player_servermenuCancel;
Line 132 };
Line 133
Line 134 // ====================== SERVER MENU SCRIPT END ====================== //
So the errors I'm seeing in my client side ArmA2OA.rpt are mostly with line 21 and 121 with occasionally line 25. Here's an excerpt from my .rpt file::
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
s_player_s>
Error position: <s_player_settings < 0) then {
s_player_s>
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 21
Error in expression <peed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player>
Error position: <s_player_servermenu < 0) then {
s_player>
Error Undefined variable in expression: s_player_servermenu
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 121
Error in expression <"",""];
};
} else {
player removeAction s_player_settings;
s_player_settings = ->
Error position: <s_player_settings;
s_player_settings = ->
Error Undefined variable in expression: s_player_settings
File mpmissions\__CUR_MP.Tavi\custom\fn_selfActions.sqf, line 25
Error in expression <", ""];
These just repeat over and over. So where would "s_player_settings" be set (or supposed to be set)? And more importantly, how can I fix it? Both seem to be working properly in-game but I'm trying to fix all errors.
Question
Bob_the_K
Hi, i have two code blocks in my "fn_SelfActions.sqf " that both use the variable "s_player_settings". One is for setting view distance and here is that section of code with the line numbers:
The second is for a server menu script, again with line numbers.
So the errors I'm seeing in my client side ArmA2OA.rpt are mostly with line 21 and 121 with occasionally line 25. Here's an excerpt from my .rpt file::
These just repeat over and over. So where would "s_player_settings" be set (or supposed to be set)? And more importantly, how can I fix it? Both seem to be working properly in-game but I'm trying to fix all errors.
Thanks,
Bob
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now