I have variable initialised in the init.sqf (guns = 0;) and two scripts with the following:
In preview, things work as expected, calling the script once will give "1/2 guns" hint and the second time 2/2 and the message. When I put it on a dedi however, all I get is the hint "scalar/2 guns". I assume 'scalar' in this context means undefined variable, but I can't figure out why.Code:guns = guns +1; publicVariable "guns"; hint format ["%1/2 gun", guns]; if (guns == 2) then { _handler = [player,nil,rSIDECHAT, "Hint Message2."] call RE; };
Ed: Putting the hint at the start of the trigger turns 'scalar' into 'any'. The init seems fine, though - other variables are being initialized, other commands further down in the init are working...
HOME
Reply With Quote