SA-MP Forums Archive
Mileage system, please see the. - 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: Mileage system, please see the. (/showthread.php?tid=388824)



Kilometer System - Help Me - hamim - 30.10.2012

Hi, I want to make a system have a system that calculates the speed of the mood of the game, but I want to calculate the total kilometers and you enroll anywhere using mysql Can you help?

I mean kilometers, for example, when a total of 1000 meters that display first one to add number of vehicles, the one thing I really know.

Note: English is not very good



Re: Mileage system, please see the. - bathushan - 30.10.2012

1st- You gave on Head line Mileage (One Of the Old Formet to Tell the Long) But in Text you told Kilometers (The formet what we now useing)

Kilometer/KM - Read this Topic to Have in KM/H.
For Mileages - You have to Use Calculator and you have to put a new Format and Calculate it.

i Hope i helped you


Re: Mileage system, please see the. - hamim - 30.10.2012

I think I told you I would say the wrong man, for example, 1 meter will be gone, there might be called the first one to add KM process do you know how you said I'm asking.



Re: Mileage system, please see the. - bathushan - 30.10.2012

also when i understnad you. that you want that when you drove 1M it will be show you drive one km ?
If it so you have to just RENAME the ''Meter'' To ''Kilometer''
if i not understand it. Sorry.


Re: Mileage system, please see the. - hamim - 30.10.2012

I want to address the fact that it looks like a taxi meter https://sampforum.blast.hk/showthread.php?tid=377055 do not want to, but I want to make myself mile system.

Again I say: My English is not very good.



Re: Mileage system, please see the. - hamim - 30.10.2012

SA: MP, this system must not be a very strange one


Re: Mileage system, please see the. - Mauzen - 30.10.2012

Quote:
Originally Posted by bathushan
View Post
1st- You gave on Head line Mileage (One Of the Old Formet to Tell the Long) But in Text you told Kilometers (The formet what we now useing)
How are miles an "old format"? Kilometres are european, miles are american.


Re: Mileage system, please see the. - hamim - 30.10.2012

I just want the shape of 1000 meters, so it does not matter when you go there first to add bi has data in MySQL code showed I can do it enough ..


Re: Mileage system, please see the. - ball - 30.10.2012

Code:
new Float:Milleage[MAX_VEHICLES];
Code:
new Float:ST[4], vehicleid;

vehicleid = GetPlayerVehicleID(playerid);
	
	GetVehicleVelocity(vehicleid,ST[0],ST[1],ST[2]);
	ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;

	Milleage[vehicleid] += ST[3]/2000;
In kilometers


Re: Mileage system, please see the. - hamim - 30.10.2012

Thanks