private var secretKey=“mySecretKey”; // Edit this value and make sure it’s the same as the one stored on the server
from where do i get this mySecretKey ??
is this the right way to change db name, user name and password ??
<?php
// Send variables for the MySQL database class.
$database = mysql_connect('localhost', 'sco7_scores', 'mypasss') or die('Could not connect: ' . mysql_error());
mysql_select_db('sco7_scores') or die('Could not select database');
3. it says u must add a gui text on a game object, i have added a guitext from GameObject bar, but how to add it to my empty gameobject ?? i dragged it on the gameobject but still error is there
error is on this line -
gameObject.guiText.text = "Loading Scores";
4. i hope it works with the web player
Thank in advance..
This line-> var hash=Md5.Md5Sum(name + score + secretKey); and this error->Assets/Scripts/HSController.js(13,14): BCE0005: Unknown identifier: ‘Md5’. Know anyone how to fix it?
Hey it loading score, and write this There was an error getting the high score: Rejected because no crossdomain.xml policy file was found
UnityEngine.MonoBehaviour:print(Object)
$:MoveNext() (at Assets/Scripts/HSController.js:32) Can anyone help?
that error is saying that the databse server cannot be found, you need to make sure you change mysql_host everywhere in the script to localhost or the IP of your database server
now you need to change all mysql_user in all scripts to whatever your database username and also need to put in mysql_password with your database password and my_database with the name of your database., you need to do this in addscore.php and display.php
$db = mysql_connect('[B]mysql_host[/B]', '[B]mysql_user[/B]', '[B]mysql_password[/B]') or die('Could not connect: ' . mysql_error());
mysql_select_db('[B]my_database[/B]') or die('Could not select database');
You will have to ask your webhost what your database IP is, it is normally the same as the IP for your hosting server.