dvar not working after reopening menu
Hi all,
I made a menu where u can select killstreaks (for example)
When I open the menu the first time, the error is shown in the menu via a dvar
Code:
self setClientCvar("warn",warn);
But when I close the menu and open it again, the warning is not shown in the menu. I first thought it was some script error, but I added an iprint aswell so I could check the console.
It DOES show the correct warning in the iprintln in the console.
Code:
iprintln("Response: "+response+"/nWarn: "+warn);
self setClientCvar("warn",warn);
wait 0.5;
self setClientCvar("warn","");
How is it possible that after reopening a menu and not doing anything else, the dvar stops working?