SA-MP Forums Archive
Server HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server HELP (/showthread.php?tid=377092)



Server HELP - 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?


AW: Server HELP - Blackazur - 12.09.2012

False Section, goto "Scripting Help", and i think you must download this Include.

https://subversion.assembla.com/svn/...es/a_zones.inc


Re: Server HELP - PinEvil - 12.09.2012

error 017: undefined symbol "Get2DPosZone" ?
Try finding the code on internet (aka ******) or are missing a assembly refrence?


Re: Server HELP - Jikesh - 13.09.2012

Quote:
Originally Posted by Kieran_Connell
Посмотреть сообщение
I Get



It wont let me compile my script.. will anyone help me fix this issue?
You need to add this somewhere in 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;
}