SA-MP Forums Archive
Help Another Warning that i don't know how to clear! - 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: Help Another Warning that i don't know how to clear! (/showthread.php?tid=257810)



Help Another Warning that i don't know how to clear! - Captain Price - 27.05.2011

well!
this is my script
Код:
public OnPlayerUpdate(playerid)
{
	new Float:X,Float:Y,Float:Z;
	if(IsPlayerInRangeOfPoint(playerid, 31, 2485.4888,-1958.7490,13.5810))
	{
		GetPlayerPos(playerid, X, Y, Z);
		if(IsPlayerInRangeOfPoint(playerid, 2485.4888, -1958.749, 13.581))
		{
			if(faction[playerid] != 2)
			{
			SetPlayerPos(playerid, X ,Y, Z);
			SendClientMessage(playerid, Error, "ешч дн оешщйн мдйлрс амйе Judas очен щййк мчбецд");
			}
			return 1;
		}
		return 1;
	}
	if(IsPlayerInRangeOfPoint(playerid, 31, 2265.8901, -1700.6559, 13.693))
	{
		GetPlayerPos(playerid, X ,Y, Z);
		if(IsPlayerInRangeOfPoint(playerid, 2265.8901, -1700.6559, 13.693))
		{
			if(faction[playerid] != 1)
			{
			SetPlayerPos(playerid, X, Y, Z);
		    SendClientMessage(playerid, Error, "ешч дн оешщйн мдйлрс амйе Sudden Death очен щййк мчбецд");
		    }
			return 1;
		}
		return 1;
	}
	return 1;
}
And thos are the ** Warning:
Код:
C:\Users\Yuvalino\Desktop\Server\gamemodes\UltraDM.pwn(387) : warning 202: number of arguments does not match definition
C:\Users\Yuvalino\Desktop\Server\gamemodes\UltraDM.pwn(401) : warning 202: number of arguments does not match definition



Re: Help Another Warning that i don't know how to clear! - KoczkaHUN - 27.05.2011

Usage of IsPlayerInRangeOfPoint is IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z);
Why do you check the range twice in one update?
BTW it is a VERY BAD IDEA to put this in OnPlayerUpdate... this gets called at least 40 times in a second per player, let's count..


Re: Help Another Warning that i don't know how to clear! - Captain Price - 27.05.2011

Quote:
Originally Posted by KoczkaHUN
Посмотреть сообщение
Usage of IsPlayerInRangeOfPoint is IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z);
Why do you check the range twice in one update?
BTW it is a VERY BAD IDEA to put this in OnPlayerUpdate... this gets called at least 40 times in a second per player, let's count..
Yeah Thank you! it's allmost Unseeable if you have 26 inch Boerd