![]() |
destroyonhide=true in gui causes client.var saving error
when, in a gui window, that window has destroyonhide=true,
and other functions controled through the window alter a client.variable, when the window is closed - the client.variable cannot be read again by any other npc unless the player reconnects to the server. if you don't follow this error, i can explain it again ... |
What are you talking about? How are you modifying the client.var? How are you destroying the window? Some code would be nice.
|
the actual npc was 400 lines of code ... but anyways
the window was activated and closed by a keypressed (detect keycode) query. even by closing the window with the red X in the upper right corner it still caused the client.variable to not be readable until you reconnected to the server with the gui window having the destroyonhide=true in there. all i did was make it destroyonhide=false and that fixed it. it's just odd that a window property would cause a client.variable read error and not report it as an error. it just quietly ignores you. |
It has to do with how you are setting the client.variable, I really doubt a GUI property would have any influence on it. But I can't help you unless you post some code.
|
| All times are GMT +2. The time now is 10:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.