AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does nVault support true and false? (https://forums.alliedmods.net/showthread.php?t=121804)

Excalibur.007 03-20-2010 03:37

Does nVault support true and false?
 
Can I save my data by true and false? Cause my achievements plug-ins are using bool. If not, then I shall use integer.

Arkshine 03-20-2010 05:44

Re: Does nVault support true and false?
 
You know.. true = 1 , false = 0 ..

Bugsy 03-20-2010 09:44

Re: Does nVault support true and false?
 
With that said, the answer is yes.

PHP Code:

nvault_setiVault "key" "1" ); //set key to true\1
nvault_setiVault "key" "0" ); //set key to false\0

if ( nvault_getiVault "key" ) )
     
//bool true
else 
     
//bool false 


Excalibur.007 03-21-2010 09:07

Re: Does nVault support true and false?
 
Oh ty it works :D


All times are GMT -4. The time now is 08:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.