SA-MP Forums Archive
Compiling 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: Compiling Error! (/showthread.php?tid=377094)



Compiling Error! - Kieran_Connell - 12.09.2012

I Get



Quote:

error 017: undefined symbol "Get2DPosZone"

It wont let me compile my script.. will anyone help me fix this issue?

Thanks again- Kieran


Re: Compiling Error! - Kieran_Connell - 12.09.2012

Can Someone Please help me.. i need it badly


Re: Compiling Error! - [LB]BlAcK_DeViL - 12.09.2012

Give us that error line


Re: Compiling Error! - mamorunl - 12.09.2012

You dont have a callback/stock/public called "Get2DPosZone"


Re: Compiling Error! - Kieran_Connell - 12.09.2012

Quote:

Get2DPosZone(spikeVariables[i][sPos][0], spikeVariables[i][sPos][1], sZone, MAX_ZONE_NAME); // Edited a_zones function (GET INCLUDE FROM SVN!!1)

Is the line., And Mamorunl how do i get a callback/stock/public?


Re: Compiling Error! - mamorunl - 12.09.2012

Dunno.. probably GET INCLUDE FROM SVN!!1 Like it says?


Re: Compiling Error! - Jikesh - 13.09.2012

Add this at bottom of your script:

Код:
stock Get2DPosZone(Float:x, Float:y, zone[], len)
{
 	for(new i = 0; i != sizeof(gSAZones); i++ )
 	{
		if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
		{
		    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
		}
	}
	return 0;
}
OR just get the include.