Help with TP! [SetPlayerPos] - 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 TP! [SetPlayerPos] (
/showthread.php?tid=71819)
Help with TP! [SetPlayerPos] -
Joel_Krantz - 04.04.2009
Ok, ive not been scripting for very long so im not a pro.
This went throught the compiler but when i go ingame my game crashes over and over again.
Heres the code of the public CheckForWalkingTeleport(playerid)
Код:
else if (PlayerToPointStripped(1, playerid,1422.4493,-1179.3345,25.9922, cx,cy,cz))
{
//Heli Taxi
SetPlayerPos(playerid, 1388.9174,-1220.6992,202.4453);
GameTextForPlayer(playerid, "~b~SkyCab Helitaxi, roof",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
Also for the AddStaticPickup
Код:
AddStaticPickup(1239, 2, 1422.4493,-1179.3345,25.9922); //HeliTaxi Entrance
Im using a recoded LARP (Los Angeles RP)
Thanks.
//Joel
Re: Help with TP! [SetPlayerPos] -
Antironix - 04.04.2009
What does it do when you leave that part out?
Re: Help with TP! [SetPlayerPos] -
Joel_Krantz - 04.04.2009
I didnt really understand you, if i leave AddStaticPickup out or what?
Thanks for replying
//Joel
Re: Help with TP! [SetPlayerPos] -
Antironix - 04.04.2009
If you leave the pickup out and the code yes.
Re: Help with TP! [SetPlayerPos] -
Joel_Krantz - 04.04.2009
Ok, i marked the AddStaticPickup as comment, still crashes.
Any advice?
//Joel
Re: Help with TP! [SetPlayerPos] -
Antironix - 04.04.2009
Mark the first code also.