Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Racing car positions
iTorran
Gangsta
Posts: 543
Threads: 100
Joined: Aug 2010
Reputation:
0
#1
30.06.2012, 23:13
How would you suggest I find the position of the cars relative to each other?
(Would need to run on number of laps, as well as position)
Find
Reply
Nero_3D
High-roller
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
#2
01.07.2012, 01:33
If you want to know the position of the player and you got three indicator
You need to sort the players
First after the laps
Than after the checkpoints
At last after the distance to their next checkpoint
After each sort you get groups, at the end you need to fit all groups together
It should work like
merge sort
, could be pretty hard to script
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help