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
#2

https://sampwiki.blast.hk/wiki/Strcmp
Reply
#3

oh wow i was really dumb here -.-

fixed xx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)