Doom-Angel
Jass User (Just started using NewGen)
- Reaction score
- 167
well if u are player 1 then it won't run since u didn't add any event for player 1....
u add 1 to index before adding the event so u finish with event for all players from number 1 to 8 (remember that 1 is blue and 8 is grey i think)
so try setting index after u add the event and not be4 it like this:
u add 1 to index before adding the event so u finish with event for all players from number 1 to 8 (remember that 1 is blue and 8 is grey i think)
so try setting index after u add the event and not be4 it like this:
JASS:
local integer index = 0
set gg_trg_Buy_Good_Point = CreateTrigger( )
loop
call TriggerRegisterPlayerUnitEvent(gg_trg_Buy_Good_Point, Player(index), EVENT_PLAYER_UNIT_SELL_ITEM, null)
set index = index + 1
exitwhen index == 8
endloop