Mysql problem
#7

function ConnectServer() {
print(" Connecting to the database please wait.");
mysql_connect(SERVER_HOST, SERVER_USER, SERVER_DB, SERVER_PASSWORD);
mysql_debug(1);
if(mysql_ping() == -1) {
print(" You're not connected!");
}
else {
print(" You're connected!");
}
SMFConnection = mysql_connect(SMF_HOST, SMF_USER, SMF_DB, SMF_PASSWORD);
if(mysql_ping(SMFConnection) != 1) {
print("Unable to connect");
}
else {
print("Connected to the CSMF");
}
}


Oh and I'll post my server log too, just incase:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3a R8, ©2005-2010 SA-MP Team

[10:35:26] filterscripts = "" (string)
[10:35:26]
[10:35:26] Server Plugins
[10:35:26] --------------
[10:35:26] Loading plugin: streamer.dll
[10:35:26]

*** Streamer Plugin v2.3.8 by Incognito loaded ***

[10:35:26] Loaded.
[10:35:26] Loading plugin: sscanf.dll
[10:35:26]

[10:35:26] ===============================

[10:35:26] sscanf plugin loaded.

[10:35:26] © 2009 Alex "******" Cole

[10:35:26] ===============================

[10:35:26] Loaded.
[10:35:26] Loading plugin: mysql.dll
[10:35:26]

> MySQL plugin R6-2 successfully loaded.

[10:35:26] Loaded.
[10:35:26] Loaded 3 plugins.

[10:35:26]
[10:35:26] Filter Scripts
[10:35:26] ---------------
[10:35:26] Loaded 0 filter scripts.

[10:35:26] Number of vehicle models: 0
Reply


Messages In This Thread
Mysql problem - by Acime - 24.07.2011, 17:05
Re: Mysql problem - by a32112365445 - 25.07.2011, 08:59
Re: Mysql problem - by Acime - 25.07.2011, 20:03
Re: Mysql problem - by a32112365445 - 26.07.2011, 03:12
Re: Mysql problem - by Acime - 26.07.2011, 07:02
Re: Mysql problem - by a32112365445 - 26.07.2011, 09:21
Re: Mysql problem - by Acime - 26.07.2011, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)