SA-MP Forums Archive
How to fix this error? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to fix this error? (/showthread.php?tid=126501)



How to fix this error? - hardstop - 08.02.2010

i got this error i cant fix it can somebody help me?

Код:
error 017: undefined symbol "PlayerToPointStripped"



Re: How to fix this error? - FlatMaN - 08.02.2010

define it


Re: How to fix this error? - hardstop - 08.02.2010

I added these :

Код:
CheckForWalkingTeleport(playerid);
forward PlayerToPointStripped()
but still errors :/


Re: How to fix this error? - akis_tze - 08.02.2010

give us your code and maybe we will help you

the forward is only for public fuctions



Re: How to fix this error? - kmzr - 08.02.2010

D'you have this in your script?

pawn Код:
public PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz)
{
  if(IsPlayerConnected(playerid))
  {
   new Float:tempposx, Float:tempposy, Float:tempposz;
   tempposx = (curx -x);
   tempposy = (cury -y);
   tempposz = (curz -z);
   if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
  }
  return 0;
}



Re: How to fix this error? - BlackFoX - 08.02.2010

Use the Function ,,IsPlayerInRangeOfPointґґ a lot faster than Custom Functions...