Raised This Month: $ Target: $400
 0% 

How to save player data?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-04-2020 , 21:47   Re: How to save player data?
Reply With Quote #1

If you're looking to save multiple pieces of data for each player, I would use nVault Array or SQL. I would create an enumerator for all data components and size the array with that, and use steam id as the key.

PHP Code:
enum PlayerData
{
    
szName33 ],
    
XPLevel,
    
szFavoriteIceCream16 ]
}
new 
pdDataMAX_PLAYERS ][ PlayerData ]; 
__________________

Last edited by Bugsy; 06-04-2020 at 21:49.
Bugsy is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-04-2020 , 22:01   Re: How to save player data?
Reply With Quote #2

So that would save data for each player, if this works how I think it is, this is awesome. I'm sorry if this question is kinda dumb, I started coding like 7-8 days ago
supertrio17 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 17:09.


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