What have i done wrong?
#1

I guess coding 1300 lines in under 8 hours has had a bad outcome.

Quote:

C:\Users\MW2_OWN3D\Desktop\Ultimate Freeroam 0.3C\gamemodes\own3d_roleplay.pwn(1250) : warning 213: tag mismatch

Код:
stock GetDistanceBetweenPoints(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2)
{
  new Float:distance[3];
  distance[0] = x - x2;
  distance[0] *= distance[0];
  distance[1] = y - y2;
  distance[1] *= distance[1];
  distance[2] = z - z2;
  distance[2] *= distance[2];
  distance[0] += distance[1] + distance[2];
  return floatsqroot(distance[0]); //Tag Mismatch HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
UPDATE: FIXED!

Fix:
Код:
forward Float:GetDistanceBetweenPoints(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2);
public Float:GetDistanceBetweenPoints(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2)
{
  new Float:distance[3];
  distance[0] = x - x2;
  distance[0] *= distance[0];
  distance[1] = y - y2;
  distance[1] *= distance[1];
  distance[2] = z - z2;
  distance[2] *= distance[2];
  distance[0] += distance[1] + distance[2];
  return floatsqroot(distance[0]);
}
Reply


Messages In This Thread
What have i done wrong? - by MW2_OWN3D - 07.12.2010, 00:20
Re: What have i done wrong? - by XePloiT - 07.12.2010, 00:29
Re: What have i done wrong? - by MW2_OWN3D - 07.12.2010, 00:30
Re: What have i done wrong? - by XePloiT - 07.12.2010, 01:34
Re: What have i done wrong? - by __ - 07.12.2010, 02:33

Forum Jump:


Users browsing this thread: 1 Guest(s)