Un reachable code?
#1

Error: 747: Unreachable Code.

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(AccountInfo[playerid][Logged] == 0)
    {
        SendClientMessage(playerid, RED, "You must login or register to play!");
        SendClientMessage(playerid, RED, "Login: /LOGIN [Password]***Register: /REGISTER [Password]");
    return 0;
    }
    else
    {
747     if(GetPlayerSkin(playerid) == 123)
        {
          if(AccountInfo[playerid][DrugLord] == 1)
          {
            return 1;
            }
            else
            {
              GameTextForPlayer(playerid, "You don't have permissions for this class!", 5000, 5);
              return 0;
            }
        }
    }
    return 1;
     
}
Reply
#2

Which line says it's unreachable?
Reply
#3

Код:
  	return 0;
	}
	else
	{
747		if(GetPlayerSkin(playerid) == 123)
returning 0 before it even gets to go on
Reply
#4

NVM Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)