Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   destroyonhide=true in gui causes client.var saving error (https://forums.graalonline.com/forums/showthread.php?t=65932)

Prozac 05-09-2006 05:34 AM

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 ...

ApothiX 05-09-2006 02:16 PM

What are you talking about? How are you modifying the client.var? How are you destroying the window? Some code would be nice.

Prozac 05-10-2006 12:39 AM

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.

ApothiX 05-10-2006 01:46 PM

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.