Array must be indexed
#1

Hello.
I have a error in my script
PHP код:
      if (PLAYERLIST_authed[playerid])
    {
    for(new 
i=0i<sizeof(cInfo); i++)
    {
      if(
cInfo[i][carteam]==255)
 {
      if(
cInfo[i][id_x]==0)continue;
      new 
name[32],string[128];
      
GetPlayerName(playerid,name,32);
      
format(string,sizeof(string),"%s",name);
      if(
cInfo[i][carowner] != string)continue;
 }
 else
 {
 return 
1;
 } 
what did i do wrong?
It says this line is wrong:
PHP код:
 if(cInfo[i][carowner] != string)continue; 
Reply


Messages In This Thread
Array must be indexed - by justjamie - 24.05.2016, 12:29
Re: Array must be indexed - by Jefff - 24.05.2016, 12:40
Re: Array must be indexed - by justjamie - 24.05.2016, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)