SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 18/08/2014, 03:57 AM   #11
n00el
Big Clucker
 
Join Date: Jun 2012
Posts: 133
Reputation: 0
Default Re: eDistance System

How to save this value? For e.g. the server is crashed, and all vehicle's distance return to 0... Or how to read the saved floats?
n00el is offline   Reply With Quote
Old 24/09/2014, 04:08 AM   #12
DLR
Big Clucker
 
Join Date: Jan 2013
Posts: 182
Reputation: 23
Default Re: eDistance System

[email protected]_S is never used.

Also need to forward [email protected]_OnPlayerExitVehicle(playerid, vehicleid);
__________________
DLR is offline   Reply With Quote
Old 07/10/2014, 04:41 AM   #13
SkittlesAreFalling
Big Clucker
 
Join Date: Oct 2013
Posts: 163
Reputation: 14
Default Re: eDistance System

So many knit-picky 'experts' here.

Quote:
Originally Posted by n00el View Post
How to save this value? For e.g. the server is crashed, and all vehicle's distance return to 0... Or how to read the saved floats?
Use the standard file or SQLite systems.
OR find a data saving include such as y_ini.
To save data to prevent loss on crash, save the integer value using a timer every (1min * PlayerSlots/50) not OnGameModeExit.
There's no garantee the vehicleids will be the same after the server starts back up, so make your own sort of vehicleid system.

1 mile = 5280 feet, so you can also do (GetMiles(vehicleid) / 5280) which I believe will be more accurate.

Good job OP, it's useful =]
SkittlesAreFalling is offline   Reply With Quote
Old 07/10/2014, 04:56 AM   #14
Godsmazk
Little Clucker
 
Join Date: Sep 2014
Posts: 14
Reputation: 2
Default Re: eDistance System

nuce
Godsmazk is offline   Reply With Quote
Old 07/10/2014, 05:05 AM   #15
Dangjai
Huge Clucker
 
Join Date: May 2014
Posts: 413
Reputation: 23
Default Re: eDistance System

Nice.
__________________

Dangjai is offline   Reply With Quote
Old 07/10/2014, 10:56 AM   #16
dominik523
Gangsta
 
dominik523's Avatar
 
Join Date: Feb 2013
Location: Croatia
Posts: 891
Reputation: 115
Default Re: eDistance System

Awesome include, thank you very much.
dominik523 is offline   Reply With Quote
Old 09/10/2014, 09:20 AM   #17
DowntownGangster
Little Clucker
 
Join Date: Oct 2014
Posts: 17
Reputation: 3
Default Re: eDistance System

Great work mate!
DowntownGangster is offline   Reply With Quote
Old 07/06/2018, 02:55 PM   #18
Akeem
Little Clucker
 
Join Date: Aug 2017
Posts: 37
Reputation: 0
Default Re: eDistance System

I can't get this to work.
Akeem is offline   Reply With Quote
Old 07/06/2018, 03:08 PM   #19
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,727
Reputation: 3073
Default Re: eDistance System

why "[email protected]_R"? Most people use meaningful names for their variables, like "E_gVehicleDistanceTravelled". "R" is meaningless.
Y_Less is offline   Reply With Quote
Old 07/06/2018, 03:29 PM   #20
coool
Huge Clucker
 
Join Date: Feb 2013
Location: Pakistan, Sindh
Posts: 470
Reputation: 28
Default Re: eDistance System

Quote:
Originally Posted by SkittlesAreFalling View Post
There's no garantee the vehicleids will be the same after the server starts back up, so make your own sort of vehicleid system.
As much as I know the vehicle IDs will be same. Correct me if I am wrong.
Nice include.
__________________
My Writing Works
Lost In Future

coool is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] NRank System V1.0 | Advanced Rank System | 5+ Commands | Dialog System [Much More] Nirzor Filterscripts 9 18/04/2014 09:49 PM
[Include] eDistance System EditPawn Lançamentos/Releases 28 04/01/2013 01:46 PM
[FilterScript] Cross Admin System V1.2 [updated] + Added IRC System + Anti Cheat(sscanf, dcmd,y_ini) No.1 Admin System CROSS_Hunter Filterscripts 21 02/01/2013 06:32 PM


All times are GMT. The time now is 02:15 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.