Sirroelivan
Gunnerkrigg Court
- Reaction score
- 95
I've been experimenting with JASS lately, but I've come at a problem. The function is meant to add 1 gold to each player for each unit they have. However, Jasscraft gives this error: line 12: cannot convert playerstate to real.
JASS:
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD, (R2I(PLAYER_STATE_RESOURCE_GOLD) + 1))