HallyG / HALs_Store

Weapon Shop for ARMA 3
Other
17 stars 7 forks source link

Only host can buy items #1

Closed syhrus closed 7 years ago

syhrus commented 7 years ago

While running out of editor and testing we found that the host can buy items with no trouble, however clients joining the host cannot. The dialogs all work correctly, however pressing Purchase does not give the items or subtract money.

syhrus commented 7 years ago

UPDATE: We traced it back to fn_addAction.sqf line 20: The setVariable function was not set to globally set the variable, so the server read it as null. Changed to read:

player setVariable ["HALs_store_trader_current", _trader, true];

This fixed the problem. I'd send a pull request with the fix, but you don't have them available to public.