Thread: 3 dim array ?
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-19-2018 , 17:53   Re: 3 dim array ?
Reply With Quote #4

The below is how you can associate all data for a player in one place. I don't fully understand what you are trying to do when it finishes and you want to teleport players.

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define MAX_PLAYERS 32

enum PlayerData
{
    
pdName33 ] ,
    
Float:pdOrigin] ,
    
bool:pdPlayerIsPlaying
}

new 
pdDataMAX_PLAYERS ][ PlayerData ];

public 
testid )
{
    
get_user_nameid pdDataid ][ pdName ] , charsmaxpdData[][ pdName ] ) );
    
pevid pev_origin pdDataid ][ pdOrigin ] );
    
pdDataid ][ pdPlayerIsPlaying ] = true;

__________________
Bugsy is offline