clientr multidimensional arrays not syncing
Multidimensional array values in clientr are not synced to the clientside when manipulated directly.
In the following example, after the code has run, the client still reads player.clientr.something as {{1, 1}} PHP Code:
|
I've replicated this. Looks like it's not being saved in the player's attributes (not shown in "/open account", even after reconnecting).
Testing code: PHP Code:
PHP Code:
|
Yes, not sure if it should be supported. When you have complex data then just assign it one time to the client./clientr. variable so that it's not sent ten times to the client.
|
Quote:
I'd have imagined it would be happening just the one time at the end of the script process to avoid this. |
Each time you change it yes, to be in sync with triggers and such stuff.
|
I was thinking the same as Thor. That's good to know. It would be very helpful if there was an event for when clientr variables get updated.
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 07:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.