Making this system NOT desync

Status
Not open for further replies.
Level 4
Joined
Jan 11, 2008
Messages
55
Hi, im trying to get a camera system working, and it mostly works, The problem is that the system uses getlocalplayer, and desyncs, can anyone help me with de-desyncing it?

http://www.hiveworkshop.com/forums/spells-569/cam-system-v1-13-a-144480/

JASS:
private function MultiboardSettings takes integer id returns nothing
        if show[id] and GetLocalPlayer() == Player(id) then
            if bj_lastCreatedMultiboard != null and bj_lastCreatedMultiboard != currentmb[id] then
                set saved[id] = bj_lastCreatedMultiboard
                call MultiboardDisplay(saved[id], false)
            endif
ect
 
Level 8
Joined
Feb 15, 2009
Messages
463
that doesn't cause the problems but ye u miss a endif and a endfunction

to the problem:

as always in GetLocalPlayer don't use NetTraffic only local Code and do you have other blocks with GetLocalPlayer because i'm not sure about Multiboards causing probs(i don't think they do)
 
Level 3
Joined
Jan 30, 2008
Messages
14
JASS:
private function MultiboardSettings takes integer id returns nothing
        set saved[id] = bj_lastCreatedMultiboard
        call MultiboardDisplay(saved[id], (show[id] and GetLocalPlayer() == Player(id)))
endfunction

Something like this. :grin:
 
Status
Not open for further replies.
Top