Closed Cocaina-Ricky closed 4 years ago
Have you double checked your config for the clothing shop which produces this error?
Based on the error, it seems there is a string instead of a number in one of the prices in the clothing store arrays in your config.
I think I might be stupid.
Pastebin: https://pastebin.com/UqXdrVL7
I can't see what's wrong, I'm missing something but god knows.
Which shop have you been opening? @Cocaina-Ricky
All of them, they are all showing prices of 1,000. I cannot figure out what's happening
Can we see your fn_clothingFilter.sqf please.
@Cocaina-Ricky your Config_Clothing is wrong in many ways, look at the one from the GitHub (https://github.com/AsYetUntitled/Framework/blob/v5.X.X/Altis_Life.Altis/config/Config_Clothing.hpp).
For example;
{ "NONE", $STR_C_Remove_uniforms, 0}, { "U_C_Poloshirt_stripped", 75}, { "U_C_Poloshirt_redwhite", 75},
comparing to
{ "NONE", $STR_C_Remove_uniforms, 0, "" }, { "U_C_Poloshirt_stripped", "", 125, "" }, { "U_C_Poloshirt_redwhite", "", 150, "" },
You're missing many elements, and they are in different orders resulting in errors - you need to sort your config, not an error with the framework.
Hi,
Yeah this fixed it. Sorry for slow replies.
Expected behaviour
Errors on client side > life_fnc_clothingFilter
Actual behaviour
Filters work however getting some weird error...
18:51:23 Error in expression <};};private"_pic";private"_details";{_x params[["_className","NONE",[""]],["_dis> 18:51:23 Error position: <params[["_className","NONE",[""]],["_dis> 18:51:23 Error Params: Type String, expected Number 18:51:23 File core\shops\fn_clothingFilter.sqf [life_fnc_clothingFilter], line 35
Steps to reproduce the behaviour
No idea what happened here honestly.
Mission version: 5.X.X
Launcher version: Latest
Game version: Latest
Branch: 5.X.X