Raised This Month: $ Target: $400
 0% 

Save a bool to vault?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NewUser
Member
Join Date: Mar 2006
Location: over there
Old 03-25-2006 , 22:06   Save a bool to vault?
Reply With Quote #1

Is it possible to save a bool to vault? I'm 99.9% sure it is. I think you'd have to change the bool to a string, but after that I'm sort of confused.
__________________
LEWL.
NewUser is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-25-2006 , 22:25  
Reply With Quote #2

Code:
new VaultValue[2] format(VaultValue , 1 , "%d" , MyBool ? 1 : 0 )
then save the value into your vault and you can use this to get it back
Code:
new VaultValue[2] //<<Get Vault value>> MyBool = (str_to_num(VaultValue) == 1 ) ? true : false
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 16:35.


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