02.07.2011, 10:01
Here it is, isnt that hard:
pawn Код:
stock GetMiddlePos(Float:x_1, Float:y_1, Float:x_2, Float:y_2, &Float:x_mid, &Float:y_mid)
{
x_mid = (x_1 + x_2) / 2; // Arithmetic mean value is all you need
y_mid = (y_1 + y_2) / 2;
}