SA-MP Forums Archive
[SOLVED] shamal enter crashes - 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: [SOLVED] shamal enter crashes (/showthread.php?tid=110696)



[SOLVED] shamal enter crashes - troy52192 - 28.11.2009

im having an issue with the shamal interior i have and when i press the button enter i crash with a flashing loading... screen. any solution to this issue?

Код:
	if (newkeys == 16 && InShamal[playerid] != 0)
	{
		new Float:X, Float:Y, Float:Z, Float:A;
		GetVehiclePos(InShamal[playerid], X, Y, Z);
		GetVehicleZAngle(InShamal[playerid], A);
		X += (5.0*floatsin(-(A-45.0), degrees)), Y += (5.0*floatcos(-(A-45.0), degrees));
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, X, Y, Z-0.94);
		SetPlayerFacingAngle(playerid, A);
		InShamal[playerid] = 0;
	}