21.03.2015, 14:06
Quote:
How to check whether a point/coordinate is in an area and return it in text? I don't have overlapping areas
I played around with IsPointInDynamicArea a little but not sure how to return the result |
pawn Код:
stock IsPointInDynamicAreaEx(areaid, Float: x, Float: y, Float: z)
{
new string[64];
if(IsPointInDynamicArea(areaid, x, y, z)) // In Area
{
format(string, sizeof(string), "%s", stringhere);
return string; // Strings cannot be returned directly due to a bug in the compiler
}
else // Not in area
{
format(string, sizeof(string), "%s", stringhere);
return string;
}
}