Raised This Month: $ Target: $400
 0% 

achievement


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 08-29-2012 , 14:37   achievement
Reply With Quote #1

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
daniel46 is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 08-29-2012 , 15:19   Re: achievement
Reply With Quote #2

Why to save 'em by IP ?!
You can do it by MySQL
gogicaa is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 08-31-2012 , 07:06   Re: achievement
Reply With Quote #3

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
daniel46 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 08-31-2012 , 09:11   Re: achievement
Reply With Quote #4

you save your stuff to a database and create a website that uses same database to get information?
jimaway is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 08-31-2012 , 11:53   Re: achievement
Reply With Quote #5

i dont know thats why im asking...
daniel46 is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 08-31-2012 , 16:07   Re: achievement
Reply With Quote #6

Quote:
Originally Posted by daniel46 View Post
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.
gogicaa is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 08-31-2012 , 17:00   Re: achievement
Reply With Quote #7

ok that part ok

but how i do with the site the count and all?
daniel46 is offline
Infernuz
Member
Join Date: May 2011
Old 08-31-2012 , 17:33   Re: achievement
Reply With Quote #8

Quote:
Originally Posted by daniel46 View Post
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.
Infernuz is offline
Send a message via ICQ to Infernuz
daniel46
Senior Member
Join Date: Dec 2011
Old 08-31-2012 , 17:35   Re: achievement
Reply With Quote #9

could you give me example?
daniel46 is offline
Infernuz
Member
Join Date: May 2011
Old 08-31-2012 , 17:46   Re: achievement
Reply With Quote #10

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;
            }
        }
    }
}
?>
Infernuz is offline
Send a message via ICQ to Infernuz
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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