SA-MP Forums Archive
Guys one small error - 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: Guys one small error (/showthread.php?tid=595314)



Guys one small error - RaajParker - 01.12.2015

Guys i made a nightclub in ls beach so after i finish i got a error

C:\Users\Admin\Desktop\adfdef.pwn(687) : error 017: undefined symbol "RemoveBuildingForPlayer"

can u guys help me


Re: Guys one small error - Sew_Sumi - 01.12.2015

Check your version of Pawno/SAMP-Server that you are compiling with. You may have multiple copies and you may be compiling with an older version.


Re: Guys one small error - Danzou - 01.12.2015

update your include " a_players "


Re: Guys one small error - RaajParker - 01.12.2015

Guys thx fixed i updated new version of samp go i got fixed


Re: Guys one small error - Sew_Sumi - 01.12.2015

Quote:
Originally Posted by Danzou
Посмотреть сообщение
update your include " a_players "
Rather than updating one portion, he should check what he has, and do the whole lot. By updating one you run the risk of having other outdated includes, until such time as you encounter another error.

Quote:
Originally Posted by RaajParker
Посмотреть сообщение
Guys thx fixed i updated new version of samp go i got fixed
Good stuff, and a wise move.


Re: Guys one small error - RaajParker - 01.12.2015

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Rather than updating one portion, he should check what he has, and do the whole lot. By updating one you run the risk of having other outdated includes, until such time as you encounter another error.



Good stuff, and a wise move.
Yeah Tq and a small error occur

warning 202: number of arguments does not match definition


Re: Guys one small error - UltraScripter - 01.12.2015

Show the code you get warning


Re: Guys one small error - AbyssMorgan - 01.12.2015

SA:MP Includes
https://github.com/AbyssMorgan/ADM/t...r/samp/include

and show warring line


Re: Guys one small error - RaajParker - 01.12.2015

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Rather than updating one portion, he should check what he has, and do the whole lot. By updating one you run the risk of having other outdated includes, until such time as you encounter another error.



Good stuff, and a wise move.
Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
Show the code you get warning
Код:
#include <a_samp>

#define door

new Gate;
new gate;
new Move;
new go;
new isl;
new rwp;
new gw;
new fs;
new kha;
new hyd;
new qe;
new pw;
new umer;

public OnFilterScriptInit()
{
    umer = CreateObject(19333, -959.48248, 3661.75122, 50.01505, 0.00000, 0.00000, -6.42000);
	Gate = CreateObject(971, -958.26025, 3581.04932, 23.56189, 0.00000, 0.00000, -88.98002);
	gate = CreateObject(971, -958.11346, 3572.22168, 23.56189, 0.00000, 0.00000, -88.98002);
	Move = CreateObject(971, -1819.28638, 3547.04712, 23.69683, 0.00000, 0.00000, 90.96001);
	go = CreateObject(971, -1819.44556, 3554.02930, 23.69683, 0.00000, 0.00000, 90.96001);
	isl = CreateObject(971, -999.99542, 4433.18896, 23.71179, 0.00000, 0.00000, 1.56000);
	rwp = CreateObject(971, -992.48383, 4433.40234, 23.70962, 0.00000, 0.00000, 1.56000);
	gw = CreateObject(971, -1581.06848, 4059.04858, 23.66252, 0.00000, 0.00000, 51.96002);
	fs = CreateObject(971, -1577.32556, 4063.80786, 23.66252, 0.00000, 0.00000, 51.96002);
	kha = CreateObject(971, -1716.38025, 3225.94971, 23.53496, 0.00000, 0.00000, -90.12000);
	hyd = CreateObject(971, -1716.38782, 3232.29004, 23.53496, 0.00000, 0.00000, -90.12000);
	qe = CreateObject(971, -647.63245, 3110.96362, 23.62191, 0.00000, 0.00000, 82.68001);
	pw = CreateObject(971, -648.52435, 3103.40137, 23.48210, 0.00000, 0.00000, 82.68001);
	SetTimer("MovingGate", 1000, 1);
	SetTimer("pak", 1000, 1);
	SetTimer("Mave", 1000, 1);
	SetTimer("Go", 1000, 1);
	SetTimer("Isl", 1000, 1);
	SetTimer("Rwp", 1000, 1);
	SetTimer("Gw", 1000, 1);
	SetTimer("Fs", 1000, 1);
	SetTimer("Kha", 1000, 1);
	SetTimer("Hyd", 1000, 1);
	SetTimer("Qe", 1000, 1);
	SetTimer("Pw", 1000, 1);
}
forward MovingGate();
public MovingGate()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -958.11346, 3572.22168, 23.56189))
		{
			open = 1;
			MoveObject(gate, -958.6059, 3592.5195, 22.0185, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(gate, -958.11346, 3572.22168, 23.56189, 5.0);
}
forward pak();
public pak()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -958.26025, 3581.04932, 23.56189))
		{
			open = 1;
			MoveObject(Gate, -957.9673, 3561.4946, 22.0383, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(Gate, -958.26025, 3581.04932, 23.56189, 5.0);
}

forward Mave();
public Mave()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1819.28638, 3547.04712, 23.69683))
		{
			open = 1;
			MoveObject(Move, -1819.0226, 3537.0933, 21.2419, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(Move, -1819.28638, 3547.04712, 23.69683, 5.0);
}

forward Go();
public Go()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1819.44556, 3554.02930, 23.69683))
		{
			open = 1;
			MoveObject(go, -1819.2263, 3562.9111, 21.2419, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(go, -1819.44556, 3554.02930, 23.69683, 5.0);
}

forward Isl();
public Isl()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -999.99542, 4433.18896, 23.71179))
		{
			open = 1;
			MoveObject(isl, -1009.9343, 4433.0557, 21.2174, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(isl, -999.99542, 4433.18896, 23.71179, 5.0);
}

forward Rwp();
public Rwp()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -992.48383, 4433.40234, 23.70962))
		{
			open = 1;
			MoveObject(rwp, -984.1025, 4433.5181, 21.2174, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(rwp, -992.48383, 4433.40234, 23.70962, 5.0);
}

forward Gw();
public Gw()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1581.06848, 4059.04858, 23.66252))
		{
			open = 1;
			MoveObject(gw, -1570.7850, 4072.3293, 21.2305, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(gw, -1581.06848, 4059.04858, 23.66252, 5.0);
}

forward Fs();
public Fs()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1577.32556, 4063.80786, 23.66252))
		{
			open = 1;
			MoveObject(fs, -1587.1233, 4051.2842, 21.2305, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(fs, -1577.32556, 4063.80786, 23.66252, 5.0);
}

forward Kha();
public Kha()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1716.38025, 3225.94971, 23.53496))
		{
			open = 1;
			MoveObject(kha, -1716.6428, 3215.9883, 21.2085, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(kha, -1716.38025, 3225.94971, 23.53496, 5.0);
}

forward Hyd();
public Hyd()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -1716.38782, 3232.29004, 23.53496))
		{
			open = 1;
			MoveObject(hyd, -1716.4213, 3241.9189, 21.2085, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(hyd, -1716.38782, 3232.29004, 23.53496, 5.0);
}

forward Qe();
public Qe()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -647.63245, 3110.96362, 23.62191))
		{
			open = 1;
			MoveObject(qe, -649.5927, 3094.1541, 21.2538, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(qe, -647.63245, 3110.96362, 23.62191, 5.0);
}

forward Pw();
public Pw()
{
	new open;
	for(new i=GetMaxPlayers(); i > -1; i--)
	{
		if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, -648.52435, 3103.40137, 23.48210))
		{
			open = 1;
			MoveObject(pw, -646.4631, 3120.8301, 21.2538, 5.0);
			break;
		}
	}
	if(!open)
		MoveObject(pw, -648.52435, 3103.40137, 23.48210, 5.0);
}


public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/go") && IsPlayerInRangeOfPoint(playerid, 10.0, -942.4452, 4525.3149, 40.0666, 5.0))
	{
		MoveObject(umer, -942.4452, 4525.3149, 40.0666, 5.0);
		return 1;
	}
	if(!strcmp(cmdtext, "/back") && IsPlayerInRangeOfPoint(playerid, 10.0, -959.48248, 3661.75122, 50.01505, 5.0))
	{
		MoveObject(umer, -959.48248, 3661.75122, 50.01505, 5.0);
		return 1;
	}
	return 0;
}



Re: Guys one small error - UltraScripter - 01.12.2015

Not the whole code only the code that cause the warning