Raised This Month: $ Target: $400
 0% 

[Solved] How to save a player choice?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2011 , 02:37   Re: How to save a player choice?
Reply With Quote #6

Quote:
Originally Posted by FoxueR View Post
Menu items start at 0, so it's probably better to initialize the choice to -1 or increment the menu items before storing them.
That is entirely upto the coder. You don't have to use the key (item) variable as the identifier. If option 0 is coded as "having not selected anything yet" then it will work just fine.
__________________
fysiks is online now
 



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 23:31.


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