Un reachable code? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Un reachable code? (
/showthread.php?tid=143070)
Un reachable code? -
ScottCFR - 21.04.2010
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;
}
Re: Un reachable code? -
Las Venturas CNR - 21.04.2010
Which line says it's unreachable?
Re: Un reachable code? -
BLAbla93 - 21.04.2010
Код:
return 0;
}
else
{
747 if(GetPlayerSkin(playerid) == 123)
returning 0 before it even gets to go on
Re: Un reachable code? -
ScottCFR - 21.04.2010
NVM Fixed