Help Another Warning that i don't know how to clear!
#1

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
Reply
#2

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..
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)