Raised This Month: $ Target: $400
 0% 

Does nVault support true and false?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-20-2010 , 03:37   Does nVault support true and false?
Reply With Quote #1

Can I save my data by true and false? Cause my achievements plug-ins are using bool. If not, then I shall use integer.
Excalibur.007 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-20-2010 , 05:44   Re: Does nVault support true and false?
Reply With Quote #2

You know.. true = 1 , false = 0 ..
__________________
Arkshine is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-20-2010 , 09:44   Re: Does nVault support true and false?
Reply With Quote #3

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 
__________________
Bugsy is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-21-2010 , 09:07   Re: Does nVault support true and false?
Reply With Quote #4

Oh ty it works
Excalibur.007 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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