- Joined
- Dec 2, 2016
- Messages
- 733
First off sorry if this is in the wrong place? Seems like all the forum areas got changed, is this where script issues should go?
I'm getting this error
Screenshot - 9430e326bc3a3d62e632e010ddd66c93 - Gyazo
It's caused by this part of the code
Any idea what the issue is? Full code below:
I'm getting this error
Screenshot - 9430e326bc3a3d62e632e010ddd66c93 - Gyazo
It's caused by this part of the code
JASS:
if (GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER < 10)) {
}
JASS:
private function resetLumberCommand() {
integer i = 0;
for (0 <= i < 12) {
if (players[i].side == SIDE_HUMAN && ConvertedPlayer(i) == GetTriggerPlayer()) {
if (GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER < 10)) {
SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER, ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) + 10 ));
}
}
}
}