• Remove NW Variable
    9 replies, posted
How do I remove a networked variable once one is made?
SetNW*(nil) ?
I'd say set it to nil. I think it'll still be around but it should return nil and it won't be updated (Unless the server continues to set it to nil).
Networked Variables are known to cause buffer overflow error. So I just wanted to delete ones not in use. Guess this is another niggle.
[QUOTE=iRzilla;26452335]Didn't you just ask this question in another thread? And if you're worried about buffer overflows use usermessages.[/QUOTE] No, I did not. And thank you for the tip.
ply:SetNetworkedVar("variable" nil) ply:SetNetworkedVar("variable" 0)
the fuck, just don't set it?
[QUOTE=blown25;26461185]ply:SetNetworkedVar("variable" 0)[/QUOTE] If you set the variable to 0 that would be the same as setting it to any other value, it would still hold a value. [QUOTE=_Chewgum;26467038]the fuck, just don't set it?[/QUOTE] Obviously there is a reason to set it, and then a reason to not need it anymore.
Sorry, you need to Log In to post a reply to this thread.