SA-MP Forums Archive
Y_INI bool - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI bool (/showthread.php?tid=545627)



Y_INI bool - Banditukas - 09.11.2014

new bool:PIZDINKRYZIUPIRKT;
Код:
INI:filename[](name[], value[])
{
    
        PIZDINKRYZIUPIRKT = strval(value);
      
}
I get tag mismatch.


Re: Y_INI bool - Dziugsas - 09.11.2014

new PIZDINKRYZIUPIRKT;


Re: Y_INI bool - Banditukas - 09.11.2014

But i need to write false, true value.


Re: Y_INI bool - Dziugsas - 09.11.2014

But you storing value (strval(value)) to your bool variable.
Try this new PIZDINKRYZIUPIRKT[5];


Re: Y_INI bool - Banditukas - 09.11.2014

Or can i save as bool, and when am loading check if 1 then set to true, if 0 set to false


AW: Y_INI bool - xerox8521 - 09.11.2014

http://forum.sa-mp.com/showpost.php?...5&postcount=16


Re: Y_INI bool - Banditukas - 09.11.2014

#define IntToBool(%1,%2) (%2=!!%1)

%2 new write a number 0 or 1 ?