09.11.2009, 23:54
Unreachable code is when the script says that a certain piece of code is impossible to get to.
The last return is unreachable. Since the else statement HAS to happen and it has a return in it.
From what it looks like in your code, is your checking to see if there admin level is Greater then 3, and then return the function. I don't see any other conditions met, which means the code underneath it can't be reached.
pawn Код:
public OnPlayerConnect(playerid)
{
if(gTeam[playerid] == 1)
{
SendClientMessage(playerid, color, "Welcome");
return 1;
}
else
{
SendClientMessage(playerid, color, "Your not team 1");
return 1;
}
return 1;
}
From what it looks like in your code, is your checking to see if there admin level is Greater then 3, and then return the function. I don't see any other conditions met, which means the code underneath it can't be reached.