Jump to page content
English English  Polish Polish  Dutch Dutch  Russian Russian  German German  Hungarian Hungarian  Norwegian Norwegian  Swedish Swedish  Finnish Finnish  Romanian Romanian  Spanish Spanish  Portuguese Portuguese  Latvian Latvian 


rsswebladder (webladder)

Rate:You need to be logged in to vote
Rating:4.7 (10 Votes)
MTADM 1.0.x Race Stats, Score & Top 5 Times Web Based Ladder 1.0.4
** Don't copy to the resources folder - Read readme.txt or see below **

Author: [DRuG]NikT using stats created by -]alw[-AcidbRain's race scoring system resources
Website: http://forums.drugcrew.com

PHP capable web server on same box as race server, or access to a current registry.db for stats
The following 3 resources by AcidbRain
( http://community.mtasa.com/index.php?p=profile&id=5967 )
race_scoringsystem http://community.mtasa.com/index.php?p=resources&s=det..mp;id=1073
race_playerstats http://community.mtasa.com/index.php?p=resources&s=det..mp;id=1071
race_playerstatsgui http://community.mtasa.com/index.php?p=resources&s=det..mp;id=1072

Just one - but feel free to tweak.. just don't rerelease without due credit 8)

You'll also probably want to tweak the table headers to indicate the actual server name and rules.

Open each php file in a text editor and adjust $dbfolder to reference your MTADM server's registry.db

The default is serverdir/mods/deathmatch, unless you have a script getting registry.db to the web server from mta.

Copy webstats.php, webstats2 to 9.php, ord.png & ttstyle.css to the same directory on a web server relative to the path you edited for dbfolder.

Tweak address to your server from http://webserverurl/webstats.php

Stay tuned, many more features to come in updated releases on

Known issues:

Browser related:
Internet Explorer transparency fail.. Chrome & Firefox tested AOK.

Web server related:
If, when attempting to load webstats.php, you get the error

"Fatal error: Class 'PDO' not found in /home/gta/public_html/webstats.php on line 25"

Problem: Your web server needs the modules to support php, pdo, sqlite3 and sqlite..

Detailed Solution: See http://www.php.net/manual/en/pdo.installation.php

Linux (debian/apt package management based) Solution:
Login as root & type the following:
apt-get install pdo_mysql php-sqlite3 php-sqlite php-db

Updated 17.10.2010, for my install I needed this instead:
apt-get install php5-sqlite php-db

then restart the webserver (assuming it's apache 2) with:
apache2ctl restart

Windows Solution:
See http://forums.devnetwork.net/viewtopic.php?f=31&t=40500
Basically, you usually need to correct your extentions directory in the web server/php config for php_core extension_dir. Be sure to restart the web server after changing the config.

Useful for webserver config debugging:
Create a file called info.php and put it in the root of the web server, put this in it...

<?php phpinfo(); ?>

Save, opening in a browser will show you a nicely formatted detailed report of the current web server configuration - look for php_core extension_dir.

Good Luck!


Download latest version | Report

Version history

Version Publish Date Changes
1.0.4 2010-10-09 23:58:11 Added the requirements to meta.xml so community warns you to download them as well:
race_scoringsystem, race_playerstats, race_playerstatsgui
1.0.3 2010-10-09 23:11:20 Additional to the top 5 times on each map, now also includes live stats page, driven by -]alw[-AcidbRain's lua scoring system resources.

You can now view the ladder arranged by any column of stats including:

* Ladder Position
* Score
* Records
* 1st placings
* 2nd placings
* 3rd placings
* Total Race Time
* Total Races
* Last Seen Time
1.0.2 2009-12-27 05:02:43 This version is updated to correct 1 thing only.. an isolated error on some web servers that was producing lines above the stats reporting "Warning: Invalid argument supplied for foreach()...".

There is now a check on the $times array to see if it's empty before displaying it, which has removed the warnings.
1.0.1 2009-11-07 17:47:20 Internet Explorer now working, but transparency not working in IE8. Download
1.0.0 2009-11-07 08:40:35 First public release Download