![]() |
Removing a variable from DB
When you have a database that holds a bunch of different variables (dynamics in my case) and you take one of the variable values and you set it to NULL, it takes the value of the var and sets it to NULL, but the variable itself still remains. The same is true if you use
DBName.variablename.clear(); and DBName.variablename = ""; Does anyone know of a surefire way to remove a variable from a database NPC? There are ways such as using = ""; to make it appear as though the variable has been deleted (because variables with this value are not displayed in the NPCdump for that DB) when infact they still remain. Thanks for the help! - Knight |
I'm pretty sure they are non-existant when being set to nil, since the ones set to nil, NULL, 0 or false won't be shown anymore after an NPC Server restart.
|
PHP Code:
I have shown Stefan and I believe all he said was ' insert nothing here '. |
Well you can do clearemptyvars() but normally it should remove it anyway when you do var = "" or similar, will need to check it.
|
Quote:
|
All times are GMT +2. The time now is 09:56 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.