array must be indexed help
#3

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Strings cannot be checked like that, use strcmp
ok thanks i did it, now i dont have errors, but now the problem is that when i type /og take "Not access" as message but it should open the gates, , the tName into .ini is exactly the same as the player name, whats wrongg?
This is my code
PHP код:
strmid(TeamInfo[i][tName], dini_Get(file"Name"), falsestrlen(dini_Get(file"Name")), MAX_PLAYER_NAME);
if(
strcmp(TeamInfo[i][tName], PlayerName(playerid)))
            {
                
found true;
                if(
TeamInfo[i][tMember] == 1)
                {
                    
MoveObject(airgate4,395.8703613,2374.1357422,25.8018494,3);
                    
MoveObject(airgate5,380.8940735,2366.1770020,25.8284874,3);
                    
AirCloseTimer[playerid] = SetTimer("AirClose"4000true);
                }
            }
        }
    }
    if(!
found) return SendClientMessage(playeridCOLOR_RED"Not Access!"); 
Reply


Messages In This Thread
array must be indexed help - by jimis - 12.06.2016, 18:44
Re: array must be indexed help - by Sjn - 12.06.2016, 18:47
Re: array must be indexed help - by jimis - 12.06.2016, 19:52

Forum Jump:


Users browsing this thread: 4 Guest(s)