Bool in Fini/Ini
#1

What function should I use if I want to write in a .ini file a bool variable?
Reply
#2

Maybe try to format the variable before saving it and after loading it?

pawn Код:
//Saving:
new Formatted_Variable = 0;
if(Variable == true)  Formatted_Variable = 1;
//Loading:
if(Loaded_Variable == 1) Variable = true; else Variable = false;
Untested, but should work.
Reply
#3

I know that, but what's the point of doing that, instead of bool variable I can use a normal one and no problem. But to spare some memory I am using this one. There is no point of doing that if you have to delcare a new one to save and load :/. I think some changes are needed. Ima do it my self xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)