Raised This Month: $ Target: $400
 0% 

Sort Array ( for rank stats )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 11-13-2011 , 09:20   Sort Array ( for rank stats )
Reply With Quote #1

Hello!

I am developing statistics for SnowWars MOD.

I do it based on fVault. As a result, I have 5 arrays: name, kills, death, hs, rank.

In the name - date type string
In the kills - date type int
in death - date type int
in hs - date type int
in rank - date type float

I need to sort an array of rank on the decrease. But there would be at the same time with an array of rank similar to all other arrays are sorted.

Does anyone have any ideas?
__________________

You do not know what to tell? Keep silent! You will look cleverer!
Не знаешь что сказать? Промолчи! Будешь выглядеть умней!
Статьи по скриптингу: НА РУССКОМ
HoLLyWooD is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-13-2011 , 10:12   Re: Sort Array ( for rank stats )
Reply With Quote #2

I know this isn't an answer to your question but it will probably be much easier to use SQL.
__________________
Bugsy is offline
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 11-13-2011 , 11:28   Re: Sort Array ( for rank stats )
Reply With Quote #3

I know that SQL is easier and faster to do it.

But do not think that for the sake of fashion, many will want to pick up the SQL server. I came up with an algorithm is, if good-will lay out
__________________

You do not know what to tell? Keep silent! You will look cleverer!
Не знаешь что сказать? Промолчи! Будешь выглядеть умней!
Статьи по скриптингу: НА РУССКОМ
HoLLyWooD is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-13-2011 , 13:08   Re: Sort Array ( for rank stats )
Reply With Quote #4

Quote:
Originally Posted by HoLLyWooD View Post
I know that SQL is easier and faster to do it.

But do not think that for the sake of fashion, many will want to pick up the SQL server. I came up with an algorithm is, if good-will lay out
Use mysql SQLite, they will not need any additional software.
__________________

Last edited by Bugsy; 11-15-2011 at 20:08.
Bugsy is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-13-2011 , 14:18   Re: Sort Array ( for rank stats )
Reply With Quote #5

Bugsy do u mean SQLite ? bcoz to use mysql you need any apache server.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 11-13-2011 , 14:20   Re: Sort Array ( for rank stats )
Reply With Quote #6

Is it to use SQL server owner will not need SQL Server?
__________________

You do not know what to tell? Keep silent! You will look cleverer!
Не знаешь что сказать? Промолчи! Будешь выглядеть умней!
Статьи по скриптингу: НА РУССКОМ
HoLLyWooD is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 11-13-2011 , 16:14   Re: Sort Array ( for rank stats )
Reply With Quote #7

Apache? apache is web server. You just need mysql server.
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-13-2011 , 16:41   Re: Sort Array ( for rank stats )
Reply With Quote #8

Quote:
Originally Posted by lucas_7_94 View Post
Bugsy do u mean SQLite ? bcoz to use mysql you need any apache server.
Yes I guess so, I always get confused between the two.
__________________
Bugsy is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-13-2011 , 17:59   Re: Sort Array ( for rank stats )
Reply With Quote #9

Há , no problema.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-14-2011 , 19:04   Re: Sort Array ( for rank stats )
Reply With Quote #10

MySQL is standalone, you don't *need* anything other than the MySQL server itself to use it.
__________________

Last edited by Hunter-Digital; 11-14-2011 at 19:05.
Hunter-Digital is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 06:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode