Unreachable code fix? +REP
#1

Why is this an unreachable code?
Код:
if (strcmp("/closetank47", cmdtext, false, 10) == 0)
	{
		if(IsPlayerInRangeOfPoint(playerid, 2, 652.20001220703, -1506.3000488281, 23.5))
		{
		    SendClientMessage(playerid, 0x10F441AA, "Tank Closed!");
		    Create3DTextLabel("Tank Closed!", 0x10F441AA, 658.70001220703, -1507.5999755859, 22, 40.0, 0, 1);
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, 0xAFAFAFAA, "Get Closer to the Tank!");
		    return 1;
		}
		return 1;
	}
Im not asking anyone to fix it for me im asking whats the problem with it. (but fixing it for me is fine also.)
Reply


Messages In This Thread
Unreachable code fix? +REP - by ShawtyyMacJunior - 30.07.2012, 06:18
Re: Unreachable code fix? +REP - by Devilxz97 - 30.07.2012, 06:21
Re: Unreachable code fix? +REP - by newbienoob - 30.07.2012, 06:21
Re: Unreachable code fix? +REP - by Cjgogo - 30.07.2012, 06:22
Re: Unreachable code fix? +REP - by ReneG - 30.07.2012, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)