[FS + PHP + MySQL] SampSTM v1.0
#1

SampSTM v0.1
Install:
1) Copy all files from a directory samp_serv in a folder with a server.
2) Add in server.cfg filterscript domMy.
2) Add in server.cfg plugin sampmysql.
Now you server.cfg should appear approximately so:
Код:
echo Executing Server Config...
lanmode 0           
rcon_password rcon      
maxplayers 32       
port 7777        
hostname FarCry Madness  
gamemode0 mod 1  
filterscripts domMy
announce 0       
query 1         
weburl www.sa-mp.com 
plugins sampmysql
3) Copy all files from a directory web in your web a server.
4) Open a file conf/config.php, and adjust him according to helps.
Код:
<?
$name_serv = "Stats"; //Name Serv
$ip_serv = "127.0.0.1"; //IP Serv
$port_serv = "7777"; //Port Serv
$servopis = "1";
$servrules = "1";
$servnews = "1";
$db_location = '127.0.0.1'; //MySQL Server
$db_name = 'domm'; //DB Name
$db_user = 'root'; //MySQL User
$db_passwd = ''; //MySQL password
//-------------------------------------------------------------
$dbcnx = mysql_connect($db_location, $db_user, $db_passwd);
if(!$dbcnx)
{
 echo "Error whis MySQL(Connect)";
 exit();
}
if(!mysql_select_db($db_name, $dbcnx))
{
 echo "Error whis MySQL(select)";
 exit();
}
?>
5) Open a file scriptfiles\SampSTM.ini(SA-MP Serv), and adjust him according to helps.
6) Execute MySQL inquiry containing in file SQL.txt on yours MySQL a server
on files: http://forum.sa-mp.com/index.php?topic=23380.0
on files FTP: http://forum.sa-mp.com/index.php?topic=47213.0
Download SampSTM: http://www.sendspace.com/file/z7b8vn
Reply
#2

omg

Thanks a lot for your work Delit!



Works nice 99%
Reply
#3

Wath is it doing?
Reply
#4

but how make a MySQL page i cant do it and how run it and how can all see that page
Reply
#5

MySQL is an open source database. It is only an database and pages accessing it can be created with programming language like PHP for webpages.

With some hosting services (including mine ) you get a mysql database for free, so just ask your hoster for it.
Reply
#6

http://forum.sa-mp.com/index.php?topic=47213.0 <- on FTP Files
Reply
#7

what is that ? info please!
Reply
#8

web stats..
Reply
#9

http://dev.delux-host.com/sampst2/ - web site
Reply
#10

Thanks alot, the only one that works for me
Reply
#11

Does this work for linux servers as well?
Reply
#12

Quote:
Originally Posted by peterspliid
Does this work for linux servers as well?
it should
Reply
#13

Is for running a samp server on a normal webspace-server?
Reply
#14

re-up?
Reply
#15

Hey man, it does not work propertly under *nix, i have run sampserver under freebsd 6.2.
Reply
#16

cool ... thanks
Reply
#17

Download SampSTM: http://www.sendspace.com/file/z7b8vn Link dont work
Reply
#18

It's not working for me

I get an erro

Connection to Mysql database: Failed !
Can't connect to mysql server on 'localhost' <10060>
Error in mysql_select_db: Mysql server has gone away

My sql server is mysql 5.0
How can i fix it?Someone can help mee

Reply
#19

Omg thanks alot. i've been waiting for something liek this for a long time.
Reply
#20

Just what I needed. Thanks very much!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)