English Solved Need help with client error in new process implementation

  • Auteur de la discussion Auteur de la discussion TenTraX
  • Date de début Date de début

TenTraX

User
18/10/23
8
0
100
Code:
this enableSimulation false;  this allowDamage false;  this addAction[localize"STR_Process_R_DMT",life_fnc_processAction,"rdmt",0,false,false,"",' life_inv_dmt > 0 && life_inv_chemic > 0 !life_is_processing && !life_action_inUse',5];  this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "rdmt" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "rdmt" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"rdmt",0,false,false,"",' !license_civ_rdmt && playerSide isEqualTo civilian ',5];

Thats the ini code from the Processer.
 
Vos logs client | Your client logs
https://paste-me.net/avaxa
Solution
You forgot the && here :
1698519648063.png

You can try with the following code :
Code:
this enableSimulation false;  this allowDamage false;  this addAction[localize"STR_Process_R_DMT",life_fnc_processAction,"rdmt",0,false,false,"",' life_inv_dmt > 0 && life_inv_chemic > 0 && !life_is_processing && !life_action_inUse',5];  this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "rdmt" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "rdmt" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"rdmt",0,false,false,"",' !license_civ_rdmt && playerSide isEqualTo civilian ',5];
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Based on the code you provided, it seems that you have created a process using the SQF programming language in Arma 3. The process involves disabling simulation and damage for an object. It also adds two actions to the object: one for processing a substance called "R_DMT" and another for buying a license for the "rdmt" skill. The actions have certain conditions that need to be met in order for them to be displayed. If you are experiencing a client error, please provide more information about the error message you're receiving so that I can assist you further.

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
 
You forgot the && here :
1698519648063.png

You can try with the following code :
Code:
this enableSimulation false;  this allowDamage false;  this addAction[localize"STR_Process_R_DMT",life_fnc_processAction,"rdmt",0,false,false,"",' life_inv_dmt > 0 && life_inv_chemic > 0 && !life_is_processing && !life_action_inUse',5];  this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "rdmt" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "rdmt" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"rdmt",0,false,false,"",' !license_civ_rdmt && playerSide isEqualTo civilian ',5];
 
Solution