unreachable code
#1

Error:
Код:
(1343) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

1 Warning.
Error line:
Код:
1343: 	return 1;
Full code:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	new string[MAX_PLAYER_NAME];
 	new plname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, plname, sizeof(plname));
	format(string, sizeof(string), "mg/%s.ini", plname);
	if(fexist(string))
	{
		gPlayerAccount[playerid] = 1;
		SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are a registered citizen of San Andreas.");
		SendClientMessage(playerid, COLOR_WHITE, "SERVER: Use /login [password] to log in to your account.");
		return 1;
	}
	else
	{
		gPlayerAccount[playerid] = 0;
		SendClientMessage(playerid,COLOR_WHITE,"SERVER: Your'e are not registered,type to register, /register [password]");
		return 1;
	}
	return 1;
}
Reply


Messages In This Thread
unreachable code - by Typhome - 15.08.2009, 19:56
Re: unreachable code - by James_Alex - 15.08.2009, 20:00
Re: unreachable code - by dice7 - 15.08.2009, 20:03
Re: unreachable code - by Typhome - 15.08.2009, 20:04

Forum Jump:


Users browsing this thread: 2 Guest(s)