TM-FORUM

The TrackMania universal forum ^_^
It is currently 24 Mar 2017 03:16

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: check if maniacode has been executed with PHP problem
PostPosted: 11 Sep 2014 10:26 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: 23 Sep 2013 12:10
Posts: 22
Owned TM-games: TMUF
Hi,

I'm adding a simple poker game to my manialink (for Trackmania United Forever)
using PHP 5.2. The idea is that users can buy credits to play with coppers.
Suppose you have a quad like this:

<quad posn="0 0 0" sizen="12 6" style="Bgs1" substyle="BgIconBorder" manialink="buyCreditsForGame"></quad>

with buyCreditsForGame a registered maniacode that charges the user 50 coppers and points to an xml file
with the maniacode:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<maniacode>
<show_message>
<message>You've bought 5 credits.</message>
</show_message>
</maniacode>


The PHP script has to check whether the maniacode has been executed and if so connect to a MySQL database
and increment credits by 5, update the jackpot,... Is there a way to check with PHP that the above maniacode
has indeed been executed? Remember: the manialink is for Trackmania United Forever, not for maniaplanet/Trackmania 2.


Greetings,

Jonas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group