SA-MP Forums Archive
Vehicle KM Save Problem - 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: Vehicle KM Save Problem (/showthread.php?tid=661461)



Vehicle KM Save Problem - BrainDamaged - 04.12.2018

Hi, I created the necessary fields to register the vehicles' KM



I created the required fields, but I do not know how to increase the vehicle's KM.

https://hastebin.com/enaqowujuk.cpp
Note: Sorry, my first language is not english.


Re: Vehicle KM Save Problem - BrainDamaged - 05.12.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
Use a numeric field, not a string, then you can use normal maths to increase it.
Thank you for your warning, how can I do 'KM' increase and what method should I use?
Can you show with example?


Re: Vehicle KM Save Problem - Kaliber - 05.12.2018

There are many examples out there, such search a bit

For example: https://sampforum.blast.hk/showthread.php?tid=189171