[HELP] I just get an error when I try to do this...
#1

What can I to fix this error:

error 017: undefined symbol "PlayerToPoint"

The scrpt is:

Код:
	if (strcmp("/enter", cmdtext, true) == 0)
	{
		if(PlayerToPoint(5.0, playerid, 1568.5195,-1690.6931,5.8906))
		SetPlayerPos(playerid, 615.2851,-124.2390,997.6350);
		SetPlayerInterior(playerid, 3);
		return 1;
	}
}

Reply
#2

Get the PlayerToPoint function,
It is defiantly soemwher here on the forums, just search for it
Reply
#3

pawn Код:
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
  new Float:oldpos[3], Float:temppos[3];
  GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
  temppos[0] = (oldpos[0] -X);
  temppos[1] = (oldpos[1] -Y);
  temppos[2] = (oldpos[2] -Z);
  if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
  {
    return true;
  }
  return false;
}
also ..

pawn Код:
if (strcmp("/enter", cmdtext, true) == 0)
{
    if(PlayerToPoint(5.0, playerid, 1568.5195,-1690.6931,5.8906))
    {
        SetPlayerPos(playerid, 615.2851,-124.2390,997.6350);
        SetPlayerInterior(playerid, 3);
        return 1;
    }
}
Reply
#4

EDIT:Fixed it

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)