AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sort Array ( for rank stats ) (https://forums.alliedmods.net/showthread.php?t=171978)

HoLLyWooD 11-13-2011 09:20

Sort Array ( for rank stats )
 
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?

Bugsy 11-13-2011 10:12

Re: Sort Array ( for rank stats )
 
I know this isn't an answer to your question but it will probably be much easier to use SQL.

HoLLyWooD 11-13-2011 11:28

Re: Sort Array ( for rank stats )
 
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:)

Bugsy 11-13-2011 13:08

Re: Sort Array ( for rank stats )
 
Quote:

Originally Posted by HoLLyWooD (Post 1596005)
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.

lucas_7_94 11-13-2011 14:18

Re: Sort Array ( for rank stats )
 
Bugsy do u mean SQLite ? bcoz to use mysql you need any apache server.

HoLLyWooD 11-13-2011 14:20

Re: Sort Array ( for rank stats )
 
Is it to use SQL server owner will not need SQL Server?

Flipper_SPb 11-13-2011 16:14

Re: Sort Array ( for rank stats )
 
Apache? apache is web server. You just need mysql server.

Bugsy 11-13-2011 16:41

Re: Sort Array ( for rank stats )
 
Quote:

Originally Posted by lucas_7_94 (Post 1596102)
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.

lucas_7_94 11-13-2011 17:59

Re: Sort Array ( for rank stats )
 
Há , no problema.

Hunter-Digital 11-14-2011 19:04

Re: Sort Array ( for rank stats )
 
MySQL is standalone, you don't *need* anything other than the MySQL server itself to use it.


All times are GMT -4. The time now is 08:23.

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