12.06.2016, 19:52
Quote:
Strings cannot be checked like that, use strcmp
|
This is my code
PHP код:
strmid(TeamInfo[i][tName], dini_Get(file, "Name"), false, strlen(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", 4000, true);
}
}
}
}
if(!found) return SendClientMessage(playerid, COLOR_RED, "Not Access!");