23.02.2010, 10:29
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.
And when compiling that, I get one error:
I know this might sound stupid, and the solution is probably a simple one, but I couldn't simply get the solution myself.
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);
}
}
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.