Help with TP! [SetPlayerPos]
#1

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
Reply
#2

What does it do when you leave that part out?
Reply
#3

I didnt really understand you, if i leave AddStaticPickup out or what?
Thanks for replying

//Joel
Reply
#4

If you leave the pickup out and the code yes.
Reply
#5

Ok, i marked the AddStaticPickup as comment, still crashes.
Any advice?

//Joel
Reply
#6

Mark the first code also.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)