SA-MP Forums Archive
Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Error (/showthread.php?tid=539646)



Error - ZombieNest - 29.09.2014

Ok so guys I am making my own freeroam from scratch, I have 2 warnings anyway to fix them? Lines are highlited as cyan
Error:
Код:
Код:
Highlighted Text 1 : warning 205: redundant code: constant expression is zero
Код:
Код:
Highlighted Text 2 : warning 205: redundant code: constant expression is zero
Код:
Код:
public Hostname1()
{
	SendRconCommand("hostname "HOST_NAME1"");
	if(HOST_NAME_LOGGING)
	{
	print("Server Hostname 1 changed to "HOST_NAME1"");
	return 1;
	}
	return 1;
}

public Hostname2()
{
	SendRconCommand("hostname "HOST_NAME2"");
	if(HOST_NAME_LOGGING)
	{
	print("Server Hostname 2 changed to "HOST_NAME2"");
	return 1;
	}
	return 1;
}