SA-MP Forums Archive
symbol already defined - 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: symbol already defined (/showthread.php?tid=655537)



symbol already defined - Neom - 23.06.2018

E:\Pwn\pawno\include\YSI\..\YSI_Data\..\YSI_Intern al\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
E:\Pwn\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(586) : warning 202: number of arguments does not match definition
E:\Pwn\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(582) : warning 203: symbol is never used: "addsiren"
E:\Pwn\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(62 : warning 202: number of arguments does not match definition
E:\Pwn\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(624) : warning 203: symbol is never used: "addsiren"
C:\Users\ANSH\Desktop\World War IV (build 9)\gamemodes\worldwar.pwn(1661) : error 021: symbol already defined: "ReturnPlayerName"
C:\Users\ANSH\Desktop\World War IV (build 9)\gamemodes\worldwar.pwn(8319) : error 021: symbol already defined: "isnumeric"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
help


Re: symbol already defined - Mike861 - 23.06.2018

show the code
lines where the errors are


Re: symbol already defined - Neom - 23.06.2018

error no 1 returnplayername
Код:
 ReturnPlayerName(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	return name;
}
error no 2 isnumeric
Код:
isnumeric(str[])
{
	new ch, i;
	while ((ch = str[i++])) if (!('0' <= ch <= '9'))
	{
		return false;
	}
	return true;
}



Re: symbol already defined - Mike861 - 23.06.2018

It says already defined, try deleting those and compile


Re: symbol already defined - Private200 - 23.06.2018

And also search for "isnull" line and delete it completely as you are redefining it twice (based on your first warning)