![]() |
player.loadvars(path)
does not work x_x
i am guessing for security purposes.. but this needs to be modified. lets say this is a file.. [code=Contents of levels/file.txt] clientr.var1=244 account=Boop [/code] and if i do player.loadvars("levels/file.txt") it should pretty much set player.clientr.var1 to 244 (setting the flag) but not do account (because thats a reserved variable) but it should allow to create new or modify custom variables x_x k fix this :( thx |
You have to do something like player.clientr.loadvars() I believe. I use this function in my mudlib, so I know it works.
|
Yes the player is a quite complex variable, that's why direct access is not possible, only some sub-variables can be changed. If it's really a problem then it could be modified (in the hope that it's not breaking other functionality).
|
Quote:
|
Well now I made it so it saves a seperate text file for the client and clientr variables. You can do
clientr.save/loadvars() But I kind of fail to see how it would be too complicated.. I mean just not allow for the script to wrote over any variables that are read only already.. ie: player.account but can modify player.gralat serverside but not clientside etc |
| All times are GMT +2. The time now is 09:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.