/enter doesn't work...
#1

Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(0, playerid, -382.728332, -1426.146972, 26.256608))
   {
      SetPlayerInterior(3, playerid);
      SetPlayerPos(playerid, 291.282989,310.031982,999.148437);
      return 1;
   }
}

if(strcmp(cmdtext, "/exit", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(3, playerid, 291.282989, 310.031982, 999.148437))
   {
      SetPlayerInterior(0, playerid);
      SetPlayerPos(playerid, -382.728332, -1426.146972, 26.256608);
      return 1;
   }
}
Why wont that work? :S
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3 , -382.728332, -1426.146972, 26.256608))
   {
      SetPlayerInterior(3, playerid);
      SetPlayerPos(playerid, 291.282989,310.031982,999.148437);
      return 1;
   }
}

if(strcmp(cmdtext, "/exit", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 291.282989, 310.031982, 999.148437))
   {
      SetPlayerInterior(0, playerid);
      SetPlayerPos(playerid, -382.728332, -1426.146972, 26.256608);
      return 1;
   }
}
1.You placed the paremeters wrong,the 1st param. is playerid,and then the range.
2.In the /enter command you made the range 0,I don't know if you wanted that but I changed it to 3 so it will work better
Reply
#3

Argument mismatch *-*
Reply
#4

I got the interior ID and pos off a samp resource site, it's wrong.

Do you know the ID and pos off the barn interior?
Reply
#5

I use same command like that,i cant exit
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)