Code: Select all
$data = new TMNDataFetcher('old-blue-label', true);
Code: Select all
$data = new TMNDataFetcher('fatmax', true);
You should get a result like this: http://fish.oorf.de/cpanddf.php?login=fatmax
Moderators: Pit Crew, TM-Patrol
Code: Select all
$data = new TMNDataFetcher('old-blue-label', true);
Code: Select all
$data = new TMNDataFetcher('fatmax', true);
All the information is displayed correct with print_r() as follows :$Player = new TMNDataFetcher('****', true); //Thats Mr Fishes name that is starred out
However, if I use my login name, things start to go wrong ...TMNDataFetcher Object ( [version] => 0.1.7.9 [extended] => 1 [login] => **** [nickname] => $i$f80(OoR-F)~$****$f80fish [worldrank] => 1752 [totalplayers] => 577152 [points] => 48681.33 [lastmatch] => 0.00 [wins] => 44675 [losses] => 42121 [draws] => 34263 [stars] => 4 [stardays] => 3746 [teamname] => OoR-F [teamrank] => 79 [totalteams] => 5204 [nation] => GER [nationrank] => 300 [nationplayers] => 122349 [nationpos] => 3 [nationpoints] => 16777215 [totalnations] => 75 [online] => [serverlogin] => [servernick] => [serverdesc] => [servernation] => )
results in$Player = new TMNDataFetcher('thepillbox', true);
What am I doing wrong? Is the login information wrong? I am using Track Mania Nations Forever, so is this the problem? If it is, what script can I use to get the right information?Notice: Undefined offset: 2 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 56
Notice: Undefined offset: 3 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 57
Notice: Undefined offset: 5 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 59
Notice: Undefined offset: 6 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 60
Notice: Undefined offset: 2 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 69
Notice: Undefined offset: 3 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 70
Notice: Undefined offset: 4 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 71
Notice: Undefined offset: 5 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 72
Notice: Undefined offset: 6 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 73
Notice: Undefined offset: 7 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 74
Notice: Undefined offset: 8 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 75
Notice: Undefined offset: 9 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 76
Notice: Undefined offset: 10 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 77
TMNDataFetcher Object ( [version] => 0.1.7.9 [extended] => 1 [login] => thepillbox [nickname] => [worldrank] => [totalplayers] => [points] => [lastmatch] => [wins] => [losses] => [draws] => [stars] => [stardays] => [teamname] => [teamrank] => [totalteams] => [nation] => [nationrank] => [nationplayers] => 578951 [nationpos] => [nationpoints] => [totalnations] => 75 [online] => [serverlogin] => [servernick] => [serverdesc] => [servernation] => )
This thread is for the TMU data fetcher, and you're trying to use the classic TMN data fetcher. Neither work with Forever.PillBox wrote:Just seen that this is for TMU - d'oh!!!
The TMF data fetcher is here, but it requires an account on Nadeo's stats server, so it's not very suitable for general use. Use TM Ladder to easily find some information on any Forever login.PillBox wrote:Where would I get a TMNF script like this (if it exists)...