Problema Classifica gioco

nuty11

Nuovo Utente
5 Gen 2007
2
0
0
allora, io ho creato un gioco in flash con classifica, ora questo gioco l'ho inserito nel mio sito ma nel momento in cui bisogna inserire il proprio punteggio si vede solo nel computer di dove si è giocato e se qualcuno tenta di giocare in un altro computer i punteggi fatti prima nn ci sono, come se si aprisse una classifica nuova.. come posso fare visualizzare un'unica classifica di chi gioca nel mio sito?
 

nuty11

Nuovo Utente
5 Gen 2007
2
0
0
io ho un database db.php solo che nn riesco a far inserire i punteggi in questo database invio ora i codici della mia classifica flash dove devo inserire questo database (db.php)? che codici sbaglio?

stop();
showScores = function () { var i = 10; while (i > 0){ var n = game_so.data.highScores_array[((page + i) - 1)].name; var s = game_so.data.highScores_array[((page + i) - 1)].score.toString(); var l_mc = this[(("line" + i) + "_mc")]; l_mc.rank_txt.text = (page + i) + "."; l_mc.name_txt.text = n.length ? n.toUpperCase() : "-"; l_mc.score_txt.text = s.length ? s.addCommas() : "-"; l_mc._visible = true; i--; } };
sortScore = function (a, b) { if (a.score < b.score){ return 1; } if (a.score > b.score){ return -1; } else { return 0; } };
page = 0;
maxScore = 100;
if (game_so.data.highScores_array == undefined) {
game_so.data.highScores_array = new Array();
}
if (score > 0 && game_so.data.playerName.length > 0) {
game_so.data.highScores_array.push({score:score, name:game_so.data.playerName});
game_so.data.highScores_array.sort(sortScore);
game_so.data.highScores_array.splice(maxScore);
}
score = 0;
showScores();
last_btn._visible = false;
last_btn.onPress = function() {
page -= 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
next_btn.onPress = function() {
page += 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
};
newGame_btn.onRelease = function() {
gotoAndStop(2);
};
ufo_mc.dir = 1;
ufo_mc.onEnterFrame = function() {
if (!this._visible) {
this.dir = int(rnd() * 2) * 2 - 1;
this._x = 250 - this.dir * 300;
this._visible = true;
}
this._x += this.dir * 3;
if (this._x > 550 || this._x < -50) {
this._visible = false;
}
};
 
Discussioni simili
Autore Titolo Forum Risposte Data
I Sto progettando nuovi siti utilizzando bootstrap e devo dire funziona bene, l'unico problema e la maschera -moz- HTML e CSS 0
K Problema form update PHP 2
O problema con dvr dahua xvr5116 IP Cam e Videosorveglianza 0
S Problema nel ciclare un json Javascript 0
G Problema con Xampp Web Server 1
andrea barletta Problema con miniature comandi Photoshop 0
I problema con alice Posta Elettronica 0
K Problema Inner join PHP 1
F firefox problema http Linux e Software 0
N Problema con position absolute e overflow HTML e CSS 4
E Problema jquery Success jQuery 2
L Problema con inner join PHP 11
K [php] Problema con inner join PHP 4
E problema selezione sfumata Photoshop 2
K [PHP] Problema con variabili concatenate. PHP 1
A Problema filtro fluidifica Photoshop Photoshop 1
H Problema Bordi Scontorno Photoshop 1
O problema con query PHP 4
R Problema installazione Realtek WiFi USB rtl8821 Reti LAN e Wireless 0
I problema con 2 account Posta Elettronica 1
L problema collegamento file css con html HTML e CSS 1
Y Problema percorso file in rete PHP 1
N Problema SEO "L'URL non si trova su Google" SEO e Posizionamento 4
E Problema accesso a file con app sviluppata con MIT APP INVENTOR 2 Sviluppo app per Android 0
P Problema acquisizione clienti Webdesign e Grafica 1
F NetBeans problema creazione progetto Java Windows e Software 0
M Problema con Try Catch PHP 0
C problema seo + cerco esperto SEO e Posizionamento 11
Sergio Unia Problema con gli eventi del mouse su una data table: Javascript 2
T PROBLEMA CON SESSIONI PHP 3
A Problema, non so, di scale() o transform, oppure altro? HTML e CSS 0
T ALTRO PROBLEMA CON ARRAY PHP PHP 1
R problema con else PHP 0
T PROBLEMA CON ARRAY PHP 8
L problema con query select PHP 2
R Problema query con ricerca id numerico PHP 2
F Problema con risposta PHP 0
S problema con recupero dati tabella mysql PHP 2
Z Problema con il mio tp-l i nk Reti LAN e Wireless 1
I PROBLEMA: Sostituzione sito XAMPP E-Commerce 0
T problema data 30/11/-1 PHP 0
L Problema RAM con Tomcat 8 Apache 0
napuleone problema con sort e asort PHP 4
Y Problema incolonnamento tabella PHP 7
S problema salvataggio immagini Photoshop 0
Z Problema con INT MySQL PHP 1
Z Problema database MySQL con XAMPP PHP 0
M Problema con controllo form in real time jQuery 6
D problema php mysql PHP 1
D problema php mysql PHP 1

Discussioni simili