View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009810||Multi Theft Auto : San Andreas||Scripting||public||2018-01-28 03:28||2018-07-22 21:08|
|Target Version||Fixed in Version|
|Summary||0009810: getElementsByType("player") should not return players that are not "joined"|
Sometimes i get this debug message:
xxx.lua 651: setPlayerMoney(): Modifying players before onPlayerJoin() can cause desynchronization
This line of code is inside a getElementsByType("player") loop.
|Steps To Reproduce|
Randomly execute this code at some points of time when players are joining the server:
for i, thisplayer in pairs(getElementsByType("player")) do
Maybe one player is currently exactly between the point of "joined" and "not joined" and the debug line appears. It seems to be pretty rare because the time window is small.
|Tags||No tags attached.|
Agreed, just had the same problem.