little problem with 2D array
#1

Hi guys,

I'm getting error array must be indexed (variable "name"). How to fix this?

pawn Код:
// global variable
new
    variable[ MAX_PLAYER_NAME ][ 1 ]
;

// another code
new
    name[ MAX_PLAYER_NAME ]
;
GetPlayerName( playerid, name, sizeof( name );
variable[ name ][ 0 ] = playerid;
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)