| 08-18-2007, 06:40 PM | #1 |
This is just a random question. If I was trying to use "GetStoredInteger", would I need to Sync it first? I assume it is yes because: JASS:function GetStoredIntegerBJ takes string key, string missionKey, gamecache cache returns integer //call SyncStoredInteger(cache, missionKey, key) return GetStoredInteger(cache, missionKey, key) endfunction If I must sync it first, please explain why. If I don't need to, why do they have that comment in the BJ?? Thanks for bearing with me. |
| 08-18-2007, 10:14 PM | #2 |
You do not need to sync it first unless it is possibly out-of-sync. (usage of GetLocalPlayer + gamecache) Also, the gamecache is synced from the hosts computer. this is how functions like GetHost() work. |
| 08-18-2007, 10:16 PM | #3 |
NO YOU DON'T ! this feature "must" sync this storage with host how i dunno ^^ some one will answer... + in any case it makes not much sense cause it's not "full sync" |
| 08-19-2007, 12:04 AM | #4 |
K. Thanx. |
