- Joined
- Apr 27, 2008
- Messages
- 2,455
But if he removes this fugly comment usage, it would make sense and he wouldn't bitching Cohadar's jasshelper.
It's just too much for him.
It's just too much for him.
That won't work because a leaving player may/may not have run a selection event (possible early fire)
Also, the leaving player may be the last one to run the selection event, in which case the synced var is never updated.
or it may not exit loopJASS:method wait takes nothing returns nothing loop call TriggerSyncStart() call SelectUnit(threadSyncer, true) call SelectUnit(threadSyncer, false) exitwhen synced_p call TriggerSyncReady() endloop endmethod
No, adding those lines there would screw everything up : p.
Because you're using it wrong
It will break something like Network library
Game Start is correct and it will wait until all players have finished loading the map.
And yes, I just looked.
The problem you speak of, of it never exiting... I've never run into that.
* * Alloc * hiveworkshop.com/forums/jass-resources-412/snippet-alloc-192348/
implement Alloc
in there, so Alloc should actually be required because it will not compile otherwisefunction BooBoo takes nothing returns nothing
local Thread thread = Thread.create()
if (GetLocalPlayer() == Player(0)) then
call thread.sync()
endif
call thread.wait()
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,60,"hi")
endfunction
struct Tester extends array
private static method onInit takes nothing returns nothing
call ExecuteFunc("BooBoo")
endmethod
endstruct