How to fix this error?
#1

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

Код:
error 017: undefined symbol "PlayerToPointStripped"
Reply
#2

define it
Reply
#3

I added these :

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

give us your code and maybe we will help you

the forward is only for public fuctions
Reply
#5

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;
}
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)