03.03.2011, 13:48
Your brackets are out of place, look at the fixed syntax:
It's also much easier to understand/read when it's indented properly. Additionally are you sure that's the right interior ID? I don't think I've heard of an interior with the ID of 111.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
{
SetPlayerPos(playerid, 246.40,110.84,1003.22);
SetPlayerInterior(playerid, 111);
}
return 1;
}
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
{
SetPlayerPos(playerid, 246.40,110.84,1003.22);
SetPlayerInterior(playerid, 111);
}
return 1;
}
return 0;
}