A problem with PlayerToPoint
#1

Hello, I'm completely new into scripting, and couldn't find help to this issue on the web. So I decided to post here.

I'm trying to make an /enter command, which works only in one place, for each teleport destination.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])

  if(strcmp(cmdtext, "/enter", true) == 0) // BANK
  {
    if(PlayerToPoint(6.0, playerid, 1462.3953,-1011.4509,26.8438)); // <-- Line 75
  }
  {
  SetPlayerPos(playerid, 2305.1880,-16.1371,26.7422,278.6509);
  }
}
And when compiling that, I get one error:
pawn Код:
test.pwn(75) : error 036: empty statement

I know this might sound stupid, and the solution is probably a simple one, but I couldn't simply get the solution myself.
Reply


Messages In This Thread
A problem with PlayerToPoint - by Jay420 - 23.02.2010, 10:29
Re: A problem with PlayerToPoint - by [WSM]Deadly_Evil - 23.02.2010, 10:30
Re: A problem with PlayerToPoint - by Jay420 - 23.02.2010, 10:31
Re: A problem with PlayerToPoint - by VonLeeuwen - 23.02.2010, 10:33
Re: A problem with PlayerToPoint - by Jay420 - 23.02.2010, 10:39
Re: A problem with PlayerToPoint - by Torran - 23.02.2010, 10:41
Re: A problem with PlayerToPoint - by VonLeeuwen - 23.02.2010, 10:46
Re: A problem with PlayerToPoint - by Torran - 23.02.2010, 10:47
Re: A problem with PlayerToPoint - by Jay420 - 23.02.2010, 10:51
Re: A problem with PlayerToPoint - by VonLeeuwen - 23.02.2010, 11:12
Re: A problem with PlayerToPoint - by Torran - 23.02.2010, 11:15
Re: A problem with PlayerToPoint - by MenaceX^ - 23.02.2010, 11:17
Re: A problem with PlayerToPoint - by VonLeeuwen - 23.02.2010, 11:30
Re: A problem with PlayerToPoint - by dice7 - 23.02.2010, 11:37

Forum Jump:


Users browsing this thread: 4 Guest(s)