18.04.2009, 17:39
Don't use anything, just put
Float:GetPlayerSpeed(playerid)
{
..
}
and FYI that is an inaccurate representation of speed
try
floatsqroot(floatpower(x2-x1,2)+floatpower(y2-y1,2)+floatpower(z2-z1,2));
that is the algorithm to get the distance between 2 3 dimensional points
Float:GetPlayerSpeed(playerid)
{
..
}
and FYI that is an inaccurate representation of speed
try
floatsqroot(floatpower(x2-x1,2)+floatpower(y2-y1,2)+floatpower(z2-z1,2));
that is the algorithm to get the distance between 2 3 dimensional points