AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   achievement (https://forums.alliedmods.net/showthread.php?t=194602)

daniel46 08-29-2012 14:37

achievement
 
hi all
how can i buld achievement with site? i saw this in alot of servers and i dont know how to make it

lets say i have site + domain no achievement yet so how i make them both like work as 1 and save all on STEAM/IP

gogicaa 08-29-2012 15:19

Re: achievement
 
Why to save 'em by IP ?!
You can do it by MySQL :)

daniel46 08-31-2012 07:06

Re: achievement
 
yes i could save it as SQL well its not realy what im asking im asking if some one could tell me how to do
web achievement

jimaway 08-31-2012 09:11

Re: achievement
 
you save your stuff to a database and create a website that uses same database to get information?

daniel46 08-31-2012 11:53

Re: achievement
 
i dont know thats why im asking...

gogicaa 08-31-2012 16:07

Re: achievement
 
Quote:

Originally Posted by daniel46 (Post 1787874)
i dont know thats why im asking...

Check sources of other plugin wich are using MySQL, also you can find out how to use MySQL with AMXX in Scripting Tutorials section.

daniel46 08-31-2012 17:00

Re: achievement
 
ok that part ok

but how i do with the site the count and all?

Infernuz 08-31-2012 17:33

Re: achievement
 
Quote:

Originally Posted by daniel46 (Post 1788079)
ok that part ok

but how i do with the site the count and all?

Write own script with PHP. Connect to the database, select data, and print it to the browser.

daniel46 08-31-2012 17:35

Re: achievement
 
could you give me example?

Infernuz 08-31-2012 17:46

Re: achievement
 
Well.. this is amx plugin coding forum.. but anyways..

PHP Code:

<?php 
ini_set
('mysql.connect_timeout'5);

$sql_connection mysql_connect("HOST""USERNAME""PASSWORD");

if(
$sql_connection) {
    
$database mysql_select_db("YOUR DATABASE");
    
    if(
$database) {
        
$query mysql_query("SELECT * FROM YOUR_TABLE");
        
        while(
$row mysql_fetch_array($query)) {
            foreach(
$row as $item) {
                echo 
'</br>ITEM: ' .$item;
            }
        }
    }
}
?>



All times are GMT -4. The time now is 05:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.