Simple /enter command problem
#7

*sigh* another problem... this time with the /exit command... I copied the way it looks (here it is)

Code:
	if (strcmp("/exit", cmdtext, true, 10) ==0)
	{
	  if (PlayerToPoint(playerid, Float:10, Float:362.3520, Float:-131.6543, Float:1001.4922))
	  {
	    SetPlayerInterior(playerid, 0);
	    SetPlayerPos(playerid, Float:2104.8997, Float:-1806.4668, Float:14.1484);
	    SendClientMessage(playerid, 0xffffffff, "You have left the Pizza Parlor.");
	    SetPlayerFacingAngle(playerid, Float:90.0);
     }
     else if (PlayerToPoint(playerid, Float:10, Float:245.7840, Float:63.9002, Float:1003.6406))
     {
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, Float: 1554.9174, Float:-1675.5553, Float:15.5010);
      SendClientMessage(playerid, 0xfffffff, "You have left the Police Department.");
      SetPlayerFacingAngle(playerid, Float:90.0);
     }
		else return SendClientMessage(playerid, 0xff0000AA, "ERROR: You cant exit a building from your position");
		return 1;
	}
I made it look as similar as the other ones, but I'm not sure if PlayerToPoint works with Interior IDs, because there is no "interiorid" param in the PlayerToPoint function.

Basically, no matter where I am, it always returns "ERROR: ..." I'm not sure what the problem is here :/
Reply


Messages In This Thread
Simple /enter command problem - by Annihalation - 15.07.2009, 23:10
Re: Simple /enter command problem - by woot - 15.07.2009, 23:14
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:21
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:28
Re: Simple /enter command problem - by Abernethy - 15.07.2009, 23:30
Re: Simple /enter command problem - by Annihalation - 15.07.2009, 23:39
Re: Simple /enter command problem - by Annihalation - 16.07.2009, 00:20
Re: Simple /enter command problem - by Abernethy - 16.07.2009, 04:49
Re: Simple /enter command problem - by Annihalation - 16.07.2009, 05:03
Re: Simple /enter command problem - by woot - 16.07.2009, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)