Using what I posted above, you would set data to the player array like this:
PHP Code:
pdData[ id ][ XPLevel ] = 55;
get_user_name( id , pdData[ id ][ szName] , charsmax( pdData[][ 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/
__________________