Help with my command. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with my command. (
/showthread.php?tid=234733)
Help with my command. -
iGetty - 04.03.2011
Код:
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);
}
Re: Help with my command. -
Sasino97 - 04.03.2011
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
Re: Help with my command. -
iGetty - 04.03.2011
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
|
Aight, so like this?
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.