Raised This Month: $ Target: $400
 0% 

Save and Load Problems (nVault)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-25-2010 , 12:21   Re: Save and Load Problems (nVault)
Reply With Quote #1

You are limited to a 32-bit signed integer in Pawn (without considering any memory trickery) so the max number of digits you will encounter is 10, plus 1 to make room for the sign if negative plus one for null char so you can safely size the number string at 12.

Values storable in a 32-bit signed int are -2,147,483,647 to 2,147,483,647 which should be plenty.
__________________

Last edited by Bugsy; 11-25-2010 at 12:24.
Bugsy is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 11-25-2010 , 22:26   Re: Save and Load Problems (nVault)
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
You are limited to a 32-bit signed integer in Pawn (without considering any memory trickery) so the max number of digits you will encounter is 10, plus 1 to make room for the sign if negative plus one for null char so you can safely size the number string at 12.

Values storable in a 32-bit signed int are -2,147,483,647 to 2,147,483,647 which should be plenty.
More than plenty. Thank you!
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 11:17.


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