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


Messages In This Thread
little problem with 2D array - by zgintasz - 26.06.2012, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)