20.08.2015, 18:57
Hello, they should have an explanation for taxi system should calculate the money that passed km
me system
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;