30.03.2011, 23:32
Im getting a mismatch warning on this.
The stock is this.
pawn Код:
new Float:pay;
pay = Distance(Startx,Starty,Starty,Endx,Endy,Endz);
pawn Код:
stock Float:Distance(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2)
{
new Float:result = floatsqroot(floatpower(floatsub(x2,x1),2)+floatpower(floatsub(y2,y1),2)+floatpower(floatsub(z2,z1),2));
return result;
}