Development

ListMethods in XAseco1 and XAseco2

To communicate with the dedicated server you can use so called ListMethods, e.g. if you want to know how many Coppers/Planets the server currently has: GetServerCoppers (TMF) or GetServerPlanets (TM2).

See the currently available ListMethods

Example: Get the amount of Coppers (TMF)
$aseco->client->resetError();
$aseco->client->query('GetServerCoppers');
if ( !$aseco->client->isError() ) {
	$server_coppers = $aseco->client->getResponse();
}
else {
	$aseco->console('Error at ListMethod "GetServerCoppers": ['.
		$aseco->client->getErrorCode() .'] '. $aseco->client->getErrorMessage()
	);
}
		
Example: Get the amount of Planets (TM2)
$aseco->client->resetError();
$aseco->client->query('GetServerPlanets');
if ( !$aseco->client->isError() ) {
	$server_planets = $aseco->client->getResponse();
}
else {
	$aseco->console('Error at ListMethod "GetServerPlanets": ['.
		$aseco->client->getErrorCode() .'] '. $aseco->client->getErrorMessage()
	);
}
		
Last modified: Sun, 03 Mar 2013 21:07:34 +0100
This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
XAseco is maintained by Frans P. de Vries.
MPAseco is maintained by Kremsy, ManiacTwister & TheM

Reordered Navigation

Maybe you have already noticed, that i have changed the order in the Navigation. Since now XAseco2 is in front of all others content.

Donate Planets

Donate Coppers

Donate via PayPal

ATOM release feeds

RSS release feeds