Help with my command.
#2

Quote:
Originally Posted by getty154
Посмотреть сообщение
Код:
	
else if (PlayerToPoint(3.0, playerid,2464.7048,-38.8338,27.4270))
{		    
  GameTextForPlayer(playerid, "~w~Welcome to the Bank", 5000, 1); //bankin
  SetPlayerInterior(playerid,0);
  SetPlayerPos(playerid,2305.9165,-16.0872,26.7496);
}
When I have this, it don't set me to my interior, and when I try to /exit it don't work..

that's the one to get in, this is the one to get out:


Код:
else if (PlayerToPoint(2.0, playerid,3.0, 2305.9165,-16.0872,26.7496))//bank
			{
			    SetPlayerInterior(playerid,0);
				SetPlayerPos(playerid,2464.7048,-38.8338,27.4270);
			}
The first is wrong, because you missed an opening bracket.

Try:

pawn Код:
else if (PlayerToPoint(3.0, playerid,2464.7048,-38.8338,27.4270))
{          
  GameTextForPlayer(playerid, "~w~Welcome to the Bank", 5000, 1); //bankin
  SetPlayerInterior(playerid,0);
  SetPlayerPos(playerid,2305.9165,-16.0872,26.7496);
}
TIP: When you click on the button "Wrap [code] tags around selected text." when posting, change
Код:
 to 
pawn Код:
and
pawn Код:
to
Reply


Messages In This Thread
Help with my command. - by iGetty - 04.03.2011, 11:36
Re: Help with my command. - by Sasino97 - 04.03.2011, 11:47
Re: Help with my command. - by iGetty - 04.03.2011, 11:52

Forum Jump:


Users browsing this thread: 2 Guest(s)