26.06.2012, 16:54
Hi guys,
I'm getting error array must be indexed (variable "name"). How to fix this?
Thanks.
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;