Whats wrong with this....
#1

Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(PlayerToPoint(3, playerid, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393); 
return 1;
}
}
undefined symbol "PlayerToPoint"
??
Reply
#2

PlayerToPoint is an old and outdated custom function. Use IsPlayerInRangeOfPoint which is a native SA-MP function.

pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
   if(IsPlayerInRangeOfPoint(playerid, 3, -2455.199951, 2254.000000, 4.980384))
   {
      SetPlayerInterior(playerid, 2);
      SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
      return 1;
   }
}
Reply
#3

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(PlayerToPoint(3, playerid, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393); 
return 1;
}
}
undefined symbol "PlayerToPoint"
??
its right there at the begining ''if(playertopoint'' you really don't see it?
Reply
#4

try this:
pawn Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(3, playerid, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
return 1;
}
}
Reply
#5

Worked, thanks!
Reply
#6

Try:
pawn Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, -2455.199951, 2254.000000, 4.980384))
    {
        SetPlayerInterior(playerid, 2);
        SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
        return 1;
    }
}
NOT TESTED! Test it....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)