PDA

View Full Version : I want my gold medal!


Nad
05-23-2008, 12:38
I beat Gio and want my medal - silly game wont submit! And those with 130k, post your proof and you can have it
:P

Gio Takahashi
05-23-2008, 14:02
The arcade has been having a bit of a problem with that, not submitting. I'm going to look into that.

Crogg
05-23-2008, 14:09
// High Score Posting Determination
// Applies to all users except Gio
if($userID != 1) {
if ($userScore >= $gioScore) {
// Do Nothing
} else {
$scoringSystem->postScore($userScore);
}
} else {
$scoringSystem->postScore($userScore);
}

Nad
05-23-2008, 14:24
Thank you Gio.


$q = ("SELECT name FROM arcade WHERE rank='1'");
$db = mysql_query($q);
while($r=mysql_fetch_array($q))
{
$qr = ("UPDATE arcade SET name='Nad'");
$dbr = mysql_query($qr);
}
echo "Nad is no 1!";


Lol more like that, if it is even coded properly, forgot basics of php with mysql rofl.

Crogg
05-23-2008, 14:26
Haha, yeah you've got some issues there.

Mydra
05-23-2008, 15:15
require "mysql"
def setScores
db = Mysql.new(...)
if $user == "Smar"
db.query("INSERT INTO highscore (nick, games) VALUES ('#{$user}', 'all')")
else
db.query("DELETE FROM highscore WHERE nick = '#{$nick}'")
end
end

setScores


There's funny fully working piece of code, try it.

Crogg
05-23-2008, 15:19
Get your dirty Ruby out of here.

Mydra
05-23-2008, 15:56
you are!!

And ehm...

Here's some cpp/qt then.

void MainWindow::loadRoads(QuaZipFile *zipfile) {
if(!checkZipMode(zipfile)) {
return;
}

QByteArray roadba;
roadba = zipfile->readAll();
roadLoader = new LoadRoads();
connect(roadLoader, SIGNAL(roadsAreRead()), this, SLOT(drawRoads()));
roadLoader->readData(roadba);
}

but it's not that nice.

I'd code a query thingie, but I'm too dead to go to look how to make queries correctly... grh.

DoomKitty
05-23-2008, 16:17
yeah stupid games

Nad
05-23-2008, 16:26
No, we only like SQL queries in PHP!
Nice score btw doom, I hate that damn game though -.-
And what were you doing up at quarter to four in the morning?!

Mydra
05-23-2008, 16:31
Stupid php is stupid.

Crogg
05-23-2008, 17:00
You are my idol.

Mydra
05-23-2008, 17:04
Nyan <3

DoomKitty
05-23-2008, 17:22
No, we only like SQL queries in PHP!
Nice score btw doom, I hate that damn game though -.-
And what were you doing up at quarter to four in the morning?!

Nothing better to do?? lol

Nad
06-03-2008, 11:13
FFS, just got 227 649 but it would not bloody save! Damnit!!!!