Fordcz
F
Fordcz
Hello,
I'm experiencing some difficulties with GetUnitGoldCost() function. It's a tower sell system where the player is supposed to get back the tower's gold cost. I keep getting a compile error. Here's the suspicious line:
I'm experiencing some difficulties with GetUnitGoldCost() function. It's a tower sell system where the player is supposed to get back the tower's gold cost. I keep getting a compile error. Here's the suspicious line:
JASS:
call AdjustPlayerStateBJ( GetUnitGoldCost(GetHandleId(GetTriggerUnit())), GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
