Question about array - Multidimensional
#1

Hey everyone, I was scripting a squad system today, but I'm stuck at this point:

PHP код:
enum qInfo
{
    
qOwner[MAX_QUADS_PER_TEAM],
    
qOwnerConnectedID[MAX_QUADS_PER_TEAM],
    
qName[MAX_QUADS_PER_TEAM],
    
qTeam[MAX_QUADS_PER_TEAM],
    
qValid[MAX_QUADS_PER_TEAM],
};
new 
QuadInfo[MAX_TEAMS][qInfo]; 
Here's an example of what I would like to do:

PHP код:
new team gTeam[playerid];
strcpy(QuadInfo[team][qOwner][squad], Name(playerid)); 
However it won't work, it keeps giving me this error:
PHP код:
error 032: array index out of bounds (variable "QuadInfo"
I know that qName[MAX_QUADS_PER_TEAMS] should be a string, but it just won't work.

I tried:
PHP код:
qOwner[MAX_QUADS_PER_TEAM][48
It doesn't work, any suggestions?
Reply


Messages In This Thread
Question about array - Multidimensional - by Magic_Time - 13.09.2014, 23:57
Re: Question about array - Multidimensional - by Jack_Leslie - 14.09.2014, 00:23
Respuesta: Re: Question about array - Multidimensional - by Magic_Time - 14.09.2014, 00:29
Re: Question about array - Multidimensional - by Sasino97 - 14.09.2014, 02:12
Re: Question about array - Multidimensional - by Pottus - 14.09.2014, 03:29
Respuesta: Question about array - Multidimensional - by ThePhenix - 14.09.2014, 04:08

Forum Jump:


Users browsing this thread: 1 Guest(s)