[FS + PHP + MySQL] SampSTM v1.0 -
Delit - 11.03.2008
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
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Chumillas - 11.03.2008
omg
Thanks a lot for your work Delit!
Works nice 99%
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Ziggke - 11.03.2008
Wath is it doing?
Re: [FS + PHP + MySQL] SampSTM v1.0 -
**HITMEN** - 11.03.2008
but how make a MySQL page i cant do it and how run it and how can all see that page
Re: [FS + PHP + MySQL] SampSTM v1.0 -
[M]deLux - 11.03.2008
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.
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Delit - 12.03.2008
http://forum.sa-mp.com/index.php?topic=47213.0 <- on FTP Files
Re: [FS + PHP + MySQL] SampSTM v1.0 -
paike - 12.03.2008
what is that ? info please!
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Delit - 13.03.2008
web stats..
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Delit - 17.03.2008
http://dev.delux-host.com/sampst2/ - web site
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Anwix - 30.03.2008
Thanks alot, the only one that works for me
Re: [FS + PHP + MySQL] SampSTM v1.0 -
peterspliid - 28.05.2008
Does this work for linux servers as well?
Re: [FS + PHP + MySQL] SampSTM v1.0 -
[M]deLux - 28.05.2008
Quote:
Originally Posted by peterspliid
Does this work for linux servers as well?
|
it should
Re: [FS + PHP + MySQL] SampSTM v1.0 -
SEC - 29.05.2008
Is for running a samp server on a normal webspace-server?
Re: [FS + PHP + MySQL] SampSTM v1.0 -
BiTTRaFFiC - 30.05.2008
re-up?
Re: [FS + PHP + MySQL] SampSTM v1.0 -
simonepro - 01.07.2008
Hey man, it does not work propertly under *nix, i have run sampserver under freebsd 6.2.
Re: [FS + PHP + MySQL] SampSTM v1.0 -
Kyosaur - 01.07.2008
cool ... thanks
Re: [FS + PHP + MySQL] SampSTM v1.0 -
aha - 01.07.2008
Download SampSTM:
http://www.sendspace.com/file/z7b8vn Link dont work
Re: [FS + PHP + MySQL] SampSTM v1.0 -
dextervip - 18.07.2008
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
Re: [FS + PHP + MySQL] SampSTM v1.0 -
[IB]Scorcher - 18.07.2008
Omg thanks alot. i've been waiting for something liek this for a long time.
Re: [FS + PHP + MySQL] SampSTM v1.0 -
flakey - 18.07.2008
Just what I needed. Thanks very much!