Jump to content
  • 0

don't send la compilare


wakee

Question

salut

am si eu o problema cand dau compile imi da don't send

si dupa are aia cu linia unde da warning

C:\Users\Wakee\Desktop\SEss5.pwn(956) : warning 208: function with tag result used before definition, forcing reparse

nu stiu ce sa ii fac la linia 956 este asta


Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
	new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
LINIA: 956	new Float:var3 = 0.0;
	GetPlayerPos(playerid, var0, var1, var2);
	var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
	return floatround(var3, 0);

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

public CPSERVICE_Handler()
{
	for(new var0 = 0; var0 < 500; var0++)
	{
		new Float:var1 = 100000.0;
		new var2 = 0;
		for(new var3 = 1; var3 < 500; var3++)
		{
			if(glob524C[var3])
			{
				new Float:var4 = 0.0;
				var4 = function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]);
				if(var4 < var1)
				{
					var1 = var4;
					var2 = var3;
				}
			}
		}
		new var3 = var2;
		if(glob236C[var3][4] > function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]))
		{
			if(glob5A1C[var0] != var3)
			{
				SetPlayerCheckpoint(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2], glob236C[var3][3]);
				glob5A1C[var0] = var3;
			}
		}
		else if(glob5A1C[var0])
		{
			glob5A1C[var0] = 0;
			DisablePlayerCheckpoint(var0);
		}
	}
	return 1;
}

Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
	new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
	new Float:var3 = 0.0;
	GetPlayerPos(playerid, var0, var1, var2);
	var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
	return floatround(var3, 0);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(((newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128) || (newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128)) || ((oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128) || (oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128)) || (((newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128) || (newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128)) && GetPlayerState(playerid) == 1))
	{
		glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
	}
	return Walk_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
}

public WalkAnim(playerid)
{
	new var0 = 0, var1 = 0, var2 = 0;
	GetPlayerKeys(playerid, var0, var1, var2);
	if(function574C(playerid) == 1)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_player", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 2)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_civi", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 3)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_gang1", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 4)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_gang2", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 5)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_old", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 6)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_fatold", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 7)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_fat", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 8)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walknorm", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 9)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walkbusy", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 10)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walkpro", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 11)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walksexy", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 12)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_drunk", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 13)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "Walk_Wuzi", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	return 1;
}

function5710(arg0, arg1)
{
	glob69BC[arg0] = arg1;
	return 0;
}

function574C(arg0)
{
	return glob69BC[arg0];
}

Link to comment
Share on other sites

public CPSERVICE_Handler()
{
	for(new var0 = 0; var0 < 500; var0++)
	{
		new Float:var1 = 100000.0;
		new var2 = 0;
		for(new var3 = 1; var3 < 500; var3++)
		{
			if(glob524C[var3])
			{
				new Float:var4 = 0.0;
				var4 = function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]);
				if(var4 < var1)
				{
					var1 = var4;
					var2 = var3;
				}
			}
		}
		new var3 = var2;
		if(glob236C[var3][4] > function229C(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2]))
		{
			if(glob5A1C[var0] != var3)
			{
				SetPlayerCheckpoint(var0, glob236C[var3][0], glob236C[var3][1], glob236C[var3][2], glob236C[var3][3]);
				glob5A1C[var0] = var3;
			}
		}
		else if(glob5A1C[var0])
		{
			glob5A1C[var0] = 0;
			DisablePlayerCheckpoint(var0);
		}
	}
	return 1;
}

Float:function229C(playerid, Float:arg1, Float:arg2, Float:arg3)
{
	new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
	new Float:var3 = 0.0;
	GetPlayerPos(playerid, var0, var1, var2);
	var3 = floatsqroot(floatpower(floatabs(arg1 - var0), 2.0) + floatpower(floatabs(arg2 - var1), 2.0) + floatpower(floatabs(arg3 - var2), 2.0));
	return floatround(var3, 0);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(((newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128) || (newkeys & 1024 && newkeys & -128) || (newkeys & 1024 && newkeys & 128)) || ((oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128) || (oldkeys & 1024 && newkeys & -128) || (oldkeys & 1024 && newkeys & 128)) || (((newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128) || (newkeys & 1024 && oldkeys & -128) || (newkeys & 1024 && oldkeys & 128)) && GetPlayerState(playerid) == 1))
	{
		glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
	}
	return Walk_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
}

public WalkAnim(playerid)
{
	new var0 = 0, var1 = 0, var2 = 0;
	GetPlayerKeys(playerid, var0, var1, var2);
	if(function574C(playerid) == 1)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_player", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 2)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_civi", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 3)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_gang1", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 4)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_gang2", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 5)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_old", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 6)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_fatold", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 7)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_fat", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 8)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walknorm", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 9)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walkbusy", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 10)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walkpro", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 11)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WOMAN_walksexy", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 12)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "WALK_drunk", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	else if(function574C(playerid) == 13)
	{
		if((var0 & 1024 && var1 & -128) || (var0 & 1024 && var1 & 128) || (var0 & 1024 && var2 & -128) || (var0 & 1024 && var2 & 128))
		{
			KillTimer(glob61EC[playerid]);
			ApplyAnimation(playerid, "PED", "Walk_Wuzi", 4.0999, 1, 1, 1, 1, 1, 0);
			glob61EC[playerid] = SetTimerEx("WalkAnim", 200, false, "d", playerid);
		}
		else
		{
			KillTimer(glob61EC[playerid]);
		}
	}
	return 1;
}

function5710(arg0, arg1)
{
	glob69BC[arg0] = arg1;
	return 0;
}

function574C(arg0)
{
	return glob69BC[arg0];
}

Lasa DeAMX-ul ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.