FunTrackers Easter Special 2016 - Finished! » View News

Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
check if maniacode has been executed with PHP problem
Author Message
jonasredant Offline
Homely Mapper

Posts: 17
Joined: Aug 2014
Reputation: 0
Post: #1
check if maniacode has been executed with PHP problem

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:

<?xml version="1.0" encoding="UTF-8" ?>
<message>You've bought 5 credits.</message>
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.


11.09.2014 11:32
Find all posts by this user Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us | FunTrackers | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication | Twitter