Help with errors
#5

Well, i ******d it, i found the enum & the decleration xD

Write it like this:

Код:
stock GetPlayer3DZone(playerid)
{
	new zone[32] = "San Andreas";
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
 	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]
		&& z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
		{
		        strmid(zone, gSAZones[i][SAZONE_NAME], 0, 28);
			return zone;
		}
	}
	return zone;
}
Greekz
Reply


Messages In This Thread
Help with errors - by semaj - 05.03.2015, 13:23
AW: Help with errors - by Kaliber - 05.03.2015, 13:46
Re: Help with errors - by semaj - 05.03.2015, 13:54
Re: Help with errors - by semaj - 05.03.2015, 13:59
AW: Re: Help with errors - by Kaliber - 05.03.2015, 14:02
Re: Help with errors - by semaj - 05.03.2015, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)