21.10.2016, 01:34
I have another question regarding zones, is there a way to get the size of a zone?
new Float:tminx, Float: tminy, Float: tmaxx, Float: tmaxy;
tminx = GetPVarFloat(playerid, "EditingTurfsMinX"); tminy = GetPVarFloat(playerid, "EditingTurfsMinY"); tmaxx = GetPVarFloat(playerid, "EditingTurfsMaxX"); tmaxy = GetPVarFloat(playerid, "EditingTurfsMaxY");
I don't think you can get the actual size of the zone without setting some values yourself and using that to calculate the size, such as
Код:
new Float:tminx, Float: tminy, Float: tmaxx, Float: tmaxy; Код:
tminx = GetPVarFloat(playerid, "EditingTurfsMinX"); tminy = GetPVarFloat(playerid, "EditingTurfsMinY"); tmaxx = GetPVarFloat(playerid, "EditingTurfsMaxX"); tmaxy = GetPVarFloat(playerid, "EditingTurfsMaxY"); |