UpdateOScoreboardData
Update the local scoreboard data cache. The data is stored in a global object array oScoreboardData.
Before actually caching, this function calls UpdateScoreboardDataEx in order
to fetch latest scoreboard data first. Then, the local player's data is read and cached, and finally,
all remote players' data.
Note
- This function is automatically called by other scoreboard-related functions when needed.
- Most functions that invoke this function check whether the scoreboard data is still fresh by comparing
the current tick count with the last refresh tick count plus an update interval (
iUpdateTick). - If the logic errors occur during memory reading,
- the function will return
false - eventually, the global error level
ErrorLevelwill be set toERROR_READ_MEMORY - the global scoreboard data cache may not be complete
- the function will return
Returns: true on success, false on failure (SA:MP not available, UpdateScoreboardDataEx failed, memory read error, etc.)
Signature:
UpdateOScoreboardData()