Help with my command.
#1

Код:
	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);
			}
  		 	else if (PlayerToPoint(3.0, playerid,2303.3745,56.3584,26.4844))
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);
			}
Reply
#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
#3

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
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
Aight, so like this?

pawn Код:
hello sasino.
And I got the command sorted, it was the bold/color letters here:

Код:
else if (PlayerToPoint(2.0, playerid,3.0, 2305.9165,-16.0872,26.7496))//bank
It is not supposed to be there.

I had to do that one in pawn , don't recognize my color/boldness otherwise.

Thankyou for your help mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)