|
看不太明白
function FindaHost takes nothing returns nothing
local gamecache hf=InitGameCache("theone")
set theHost=Player(0)
call StoreInteger(hf,"a","a",GetPlayerId(GetLocalPlayer()))
call TriggerSyncStart()
call SyncStoredInteger(hf,"a","a")
call TriggerSyncReady()
set theHost=Player(GetStoredInteger(hf,"a","a"))
endfunction |
|