- Joined
- Jul 26, 2008
- Messages
- 1,009
Alright I once learned you could set a string to a variable in GetLocalPlayer() blocks and it wouldn't desync. I would swear that once a long time ago this worked. Now, it doesn't.
Example:
Desyncs. Can this be fixed?
EDIT: Changed code to -
Example:
JASS:
if IsPlayerInForce(GetLocalPlayer(), udg_Force[2]) then
set str = "Units"
endif
call CreateTextTagLocBJ( str, GetUnitLoc(GUI_Units), 0, 17.00, 100, 100, 100, 0 )
Desyncs. Can this be fixed?
EDIT: Changed code to -
JASS:
local string str = ""
set str = "Units"
if not IsPlayerInForce(GetLocalPlayer(), udg_Force[2]) then
set str = ""
endif
call CreateTextTagLocBJ( str, GetUnitLoc(GUI_Units), 0, 17.00, 100, 100, 100, 0 )
Last edited: