SA-MP Forums Archive
Error 021: Undefined Symbol - 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: Error 021: Undefined Symbol (/showthread.php?tid=523103)



Error 021: Undefined Symbol - VictorCreed - 30.06.2014

I wanna add this in my code but pawno gives this error:

Код:
D:\*\Games Archive\Grand Theft Auto - San Andreas\Server-WCRP\gamemodes\larp.pwn(85246) : error 021: symbol already defined: "MP_OPC"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Now here's the code:

Код HTML:
85245	public OnPlayerConnect(playerid)
85246	{
85247	RemoveBuildingForPlayer(playerid, 3768, 653.9844, -1060.3828, 51.5078, 0.25);
85248	RemoveBuildingForPlayer(playerid, 3768, 678.9453, -1020.8828, 54.6875, 0.25);
85249	RemoveBuildingForPlayer(playerid, 615, 634.4375, -1038.1172, 56.2813, 0.25);
85250	RemoveBuildingForPlayer(playerid, 669, 625.5703, -1036.0938, 58.4375, 0.25);
85251	RemoveBuildingForPlayer(playerid, 3762, 653.9844, -1060.3828, 51.5078, 0.25);
85252	RemoveBuildingForPlayer(playerid, 700, 654.4609, -1047.2969, 50.2422, 0.25);
85253	RemoveBuildingForPlayer(playerid, 615, 668.2500, -1028.9297, 50.4688, 0.25);
85254	RemoveBuildingForPlayer(playerid, 615, 657.2578, -1030.4609, 52.6250, 0.25);
85255	RemoveBuildingForPlayer(playerid, 615, 650.8516, -1021.0859, 55.0156, 0.25);
85256	RemoveBuildingForPlayer(playerid, 3762, 678.9453, -1020.8828, 54.6875, 0.25);
85257	return 1;
85258	}
I don't get the error because there's not even MP_OPC symbol... Can you help me?


Re: Error 021: Undefined Symbol - Luca12 - 30.06.2014

that means that MP_OPC isn't used anywhere in script and you have defined it. So you only need find that in your script and delete. Then this warning will be solved. I hope so that I help you.


Re: Error 021: Undefined Symbol - PrivatioBoni - 30.06.2014

Quote:
Originally Posted by Luca12
Посмотреть сообщение
that means that MP_OPC isn't used anywhere in script and you have defined it. So you only need find that in your script and delete. Then this warning will be solved. I hope so that I help you.
Actually no, this particular error means that the same symbol has been defined twice in the same routine.


Re: Error 021: Undefined Symbol - Luca12 - 30.06.2014

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
Actually no, this particular error means that the same symbol has been defined twice in the same routine.
yes you wright my mistake . Sorry


Re: Error 021: Undefined Symbol - VictorCreed - 30.06.2014

Guys but there's a little problem I searched all my code for MP_OPC but there's isn't MP_OPC...


Re: Error 021: Undefined Symbol - PrivatioBoni - 30.06.2014

Does "tolrp.pwn" ring a bell to you?

http://forum.sa-mp.com/showpost.php?...76&postcount=6


Re: Error 021: Undefined Symbol - VictorCreed - 30.06.2014

Nope, what should I do?