User Tag List

Results 1 to 8 of 8

Thread: Can someone help me to fix the online highscore php?

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Can someone help me to fix the online highscore php?

    Hi, I'm trying to use the online highscore example that uses PHP and mysql...
    I was able to kinda of fix part of it, but one error persists:

    Warning: mysqli_error() expects exactly 1 parameter, 0 given in /home/u202521961/domains/test.com/public_html/score_script.php on line 21

    The line that gives this erros is this:

    @mysqli_select_db($mysqli_database) or die (mysqli_error());

    I already added the "i" in the mysql function but I think something is missing... I've read about something called $link but I can't figure it out

    Can someone please help me?

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've managed to "fix" most of it, at least I think...
    Now I'm stuck with this showing up when the mfa tries to read the high score:

    <b>Notice</b>: Undefined index: status in <b>/home/u202521961/domains/test6194.com/public_html/score_script.php</b> on line <b>74</b><br />

    This second line blinks for a second and then disapear...
    <b>Notice</b>: Undefined index: playername in <b>/home/u202521961/domains/test6194.com/public_html/score_script.php</b> on line <b>98</b><br />

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The parts that this code mentions is:

    if ($_GET["status"])
    {
    echo "online";
    exit;
    }


    And:


    if ($_GET["playername"] && $_GET["gameid"] && $_GET["score"])
    {

    // Strip out | marks submitted in the name or score
    $playername_safe = str_replace("|","_",$_GET["playername"]);
    $playername_safe = mysqli_real_escape_string($link, $playername_safe);
    $score_safe = mysqli_real_escape_string($link, $_GET["score"]);
    $date = date('M d Y');

    // Check the score sent is is numeric
    // If the score is not numberic lets exit
    if(!is_numeric($score_safe))
    {
    exit;
    }

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    CapitaineCaverne's Avatar
    Join Date
    Feb 2011
    Location
    Bretigny sur Orge
    Posts
    480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Bonjour j ai test les exemple sur les tuto des score en ligne et des php de la clickteam et il fonctionne.
    Hello I test the example on the tutorial online score and php of the clickteam and it works.
    https://www.clickteam.com/creation_materials/tutorials/download/321_Easy_online_scores.zip
    il y a aussi les video de nico il sont en France en dessous vous avez les lien des mfa et des php
    there is also the video of nico he is in France and below there are the links php and mfa
    https://www.clickteam.com/fr/tutoriels
    http://www.youtube.com/watch?v=9-6IN0I6IBk
    http://www.youtube.com/watch?v=9BuEZ2ZLwVg

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, I was able to fix it without porting it to newer php versions...
    Had to add some @ to disable errors and change the version on the host...

    But, I was wondering, is there any way to make the app delete it's score?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2010
    Posts
    287
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hello,



    The data is sent from which a mobile Android fusion applocation?



    Are your data to be inserted into a database?

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yes, it's android and the data is getting inserted...
    But for some unknown reason it stopped working now, I didn't touched it for days

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2010
    Posts
    287
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    if you want I can look at your PHP code?
    so it doesn't fit into the database?

    MP I am available this afternoon.

Similar Threads

  1. Online Highscore Bug on Android?
    By Banduck in forum Android Export Module 2.5
    Replies: 1
    Last Post: 31st August 2017, 10:37 AM
  2. Online Highscore help !
    By Johnny in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 11th February 2009, 04:52 PM
  3. Online HighScore Example Question
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th March 2007, 09:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •