SA-MP Forums Archive
Highscore in website. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Highscore in website. (/showthread.php?tid=170606)



Highscore in website. - Ribber - 23.08.2010

I would like include highscores (from player's score) in my Website.
But how exactly I can do that, so how I would get the Highscore from all players and then sort it out?
Maybe a Top 10. This all will be on an extra site. I have php acess and MySQL.
So maybe you see I really don't know how to start.


Re: Highscore in website. - Conroy - 23.08.2010

MySQL plugin would be a start. Read the functions and hopefully you can follow it. If you need help with PHP, PM me.


Re: Highscore in website. - Ribber - 23.08.2010

Is MySQL and PHP a difference here?


Re: Highscore in website. - Claude - 23.08.2010

MySQL stores tables, while PHP doesn't


Re: Highscore in website. - Ribber - 23.08.2010

and what's the purpose of the tables?


Re: Highscore in website. - Agent Smith - 23.08.2010

To store information, PHP can be used to gain information from the MySQL databases.


Re: Highscore in website. - Ribber - 23.08.2010

why this is so complicated
I only can PAWN scripting.


Re: Highscore in website. - vital2k - 23.08.2010

Through Pawn and the MySQL plugin you save the information. MySQL is basically a tool/program to create a database. MySQL isn't just a plugin it's actually a well known database tool throughout the internet.

PHP is a language which can be used to call forth the information from the database.


Re: Highscore in website. - Ribber - 23.08.2010

Ok, so what I must do?
First a MySQL connection in the gamemode right?
And then how I can write all needed things to do that highscore in the mysql table?


Re: Highscore in website. - DiddyBop - 23.08.2010

Quote:
Originally Posted by Ribber
View Post
Ok, so what I must do?
First a MySQL connection in the gamemode right?
And then how I can write all needed things to do that highscore in the mysql table?
Your accounts need to be saved to a MySQL database, Then the PHP file retrieves the information.

http://php.net/manual/en/book.mysql.php

Its VERY easy to understand.