SA-MP Forums Archive
warning 225: unreachable 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)
+--- Thread: warning 225: unreachable code (/showthread.php?tid=515684)



warning 225: unreachable code - ExcelDwi - 27.05.2014

Quote:

C:\GTA - San Andreas\SERVER\gamemodes\latih.pwn(679) : warning 225: unreachable code

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
	// Reset the HouseID where the player is located
	APlayerData[playerid][CurrentHouse] = 0;
	return 1;
}
Line 679:
Код:
APlayerData[playerid][CurrentHouse] = 0;
Help me please


Re: warning 225: unreachable code - Rittik - 27.05.2014

Try this.
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	// Reset the HouseID where the player is located
	APlayerData[playerid][CurrentHouse] = 0;
	return 1;
}



Re: warning 225: unreachable code - ExcelDwi - 27.05.2014

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Try this.
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	// Reset the HouseID where the player is located
	APlayerData[playerid][CurrentHouse] = 0;
	return 1;
}
Working thanks ^_^


Re: warning 225: unreachable code - Rittik - 27.05.2014

Your welcome.