Raised This Month: $ Target: $400
 0% 

[SOLVED] Saving upgrades with nVault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-25-2015 , 11:13   Re: Saving upgrades with nVault
Reply With Quote #2

Could use a bitsum to record each players upgrade status and then store the resulting numerical value to nvault.

So you would have 5 upgrades as you do in your list. If the player has upgrades 1 and 3, their bitsum would look like 00000101 [1<<0 OR 1<<2] which is equal to "5". I can write this for you later.
__________________

Last edited by Bugsy; 10-25-2015 at 11:13.
Bugsy is offline
 



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 22:14.


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