+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: little problem with 2D array (/showthread.php?tid=354381)
little problem with 2D array - zgintasz - 26.06.2012
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;