SA-MP Forums Archive
system need fix - 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)
+--- Thread: system need fix (/showthread.php?tid=586258)



system need fix - Karolukas123 - 20.08.2015

Hello, they should have an explanation for taxi system should calculate the money that passed km

me system


Код:
			new Float:Viet[2][3];
			GetPlayerPos(playerid,Viet[0][0],Viet[0][1],Viet[0][2]);
			Viet[1][0] = taxiDB[playerid][Start][0];
			Viet[1][1] = taxiDB[playerid][Start][1];
			Viet[1][2] = taxiDB[playerid][Start][2];

   			new pay = ((floatround(floatabs(Viet[0][0]-Viet[1][0]))+floatround(floatabs(Viet[0][1]-Viet[1][1]))+floatround(floatabs(Viet[0][2]-Viet[1][2]))))/5;