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 , 22:40   Re: How to save player data?
Reply With Quote #1

Using what I posted above, you would set data to the player array like this:

PHP Code:
pdDataid ][ XPLevel ] = 55;
get_user_nameid pdDataid ][ szName] , charsmaxpdData[][ szName ] ) ); 
When it comes time to load and save the data, you would store/save using pdData[ id ]. This would include all data defined in the enum, since the enum was used to size the array.

Not sure what you mean with read_data(). This is used to read a parameter of a game event, like the killer or victim ID in a DeathMsg.

This is a good reference: http://www.amxmodx.org/api/
__________________

Last edited by Bugsy; 06-04-2020 at 22:41.
Bugsy 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