User Tag List

Page 7 of 7 FirstFirst ... 5 6 7
Results 61 to 66 of 66

Thread: Online High Score Tutorial

  1. #61
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,236
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Get the scores locally.
    Save the score also local on the device.

  2. #62
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    193
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Perry, I can't get it to work, I've tried to port it to newer mysql, everything works except inserting new data
    I gives this error:

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

  3. #63
    Clickteam Clickteam

    Join Date
    Jan 2016
    Posts
    329
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    check whats on line 74 compared to your schema for that table.


    Clickteam on Twitter - Clickteam on Facebook - Clickteam on Discord

  4. #64
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,236
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Do you still have the issue?
    You need to make sure the Table and column exists.

    I re-wrote his scripts and added auto create the table and columns in it. with the original script you need to have that done manually.

  5. #65
    Clicker 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
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i get this text

    $_GET["code"]) { // Something is wrong -- MD5 security hash is different // Could be someone trying to insert bogus score data exit; } // Everything is cool -- Insert the data into the database $query = "insert into $tname(gameid,playername,score,scoredate,md5) values ('$gameid_safe','$playername_safe','$score_safe',' $date','$security_md5')"; $insert_the_data = mysql_query($query)or die(mysql_error()); } /////////////////////////////////////////////////////// // List high score /////////////////////////////////////////////////////// // Return a list of high scores with "|" as the delimiter if ($gameid_safe) { $query = "select * from $tname where gameid='$gameid_safe' order by score desc limit 10"; $view_data = mysql_query($query)or die(mysql_error()); while($row_data = mysql_fetch_array($view_data)) { print($row_data["playername"]); print "|"; print ($row_data["score"]); print ("|"); print($row_data["scoredate"]); print("|"); } // We limit the score database to hold the number defined in the config script // First check to see how many records we have for this game $query1 ="select * from $tname where gameid = '$gameid_safe'"; $countresults = mysql_query($query1)or die(mysql_error()); $countofdeletes = mysql_num_rows($countresults); if (mysql_num_rows($countresults)>$score_number) { $query2 ="SELECT * FROM $tname WHERE gameid = '$gameid_safe' ORDER BY score DESC Limit $score_number,$countofdeletes"; $Get_data = mysql_query($query2)or die (mysql_error()); while($row_data = mysql_fetch_array($Get_data)) { $id_delete = $row_data["id"]; $query3 = "Delete from $tname where id = $id_delete"; $Delete_data = mysql_query($query3)or die (mysql_error()); } } } ?>
    after i upload the score_script.php and config.php to the public html folder and try to access https://hot-short-notation.000webhos...ore_script.php . Please help

  6. #66
    Clickteam Clickteam

    Join Date
    Jan 2016
    Posts
    329
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    check your secret kays are the same in both the php and your game

    also check your host allows .php files


    Clickteam on Twitter - Clickteam on Facebook - Clickteam on Discord

Page 7 of 7 FirstFirst ... 5 6 7

Similar Threads

  1. Online high score
    By Redsquirrel in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 10th October 2012, 06:21 PM
  2. high score online
    By fredooo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd January 2012, 09:25 PM
  3. Online High Score
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th May 2009, 03:42 PM
  4. Online high-score tutorial
    By Jeff in forum News
    Replies: 0
    Last Post: 4th March 2007, 05:01 PM

Tags for this Thread

Posting Permissions

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