Save bool with map changing
Hi,
I'd like to know how to save a boolean variable (with array) without vault and even if the map change. Is it possible ? Thanks. |
Re: Save bool with map changing
file,nvault,sql
|
Re: Save bool with map changing
Ok thanks
|
Re: Save bool with map changing
local info will work too. [s|g]et_localinfo().
|
Re: Save bool with map changing
Thanks :)
EDIT : How can I do if I have this : Code:
|
Re: Save bool with map changing
What exacly do you need to check after mapchange ?
Because if you want an array, either you use a bitsum to store the weapon IDs or make 29 different localinfos, each having it's weapon ... which isn't verry pretty... so, answer the above question. |
Re: Save bool with map changing
I want to save my boolean with each array. (bool[ 1 ] = true; bool[ 2 ] = false; bool[ 3 ] = false etc...)
I have a command which modify this boolean and I would like to load it at each changemap. |
Re: Save bool with map changing
CSW_P90 = 30 so you can store bool values in a single variable via a bit field which makes saving easy. Look here.
Also, why do you not want to use nvault? |
Re: Save bool with map changing
Quote:
Thank you very much. |
Re: Save bool with map changing
Also realize that local info is lost when you shutdown the server so it should only be used if you only need the info between mapchanges.
|
| All times are GMT -4. The time now is 03:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.