How do I set ping on MYSQL
#1

if(mysql.ping

How do I set this?

is it in the database.sql
or.. the game mode?


It's at like 7532288 and max is 1
Reply
#2

You can't set it, it shows your connection status.
Reply
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
You can't set it, it shows your connection status.

Ok.. so how do I change it? or make it change from over 7552348
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
You can't set it, it shows your connection status.
[21:58:00] >> mysql_ping() - Invalid connection handle. (You set: 7557736, Highest connection handle ID is 1).
Reply
#5

Quote:
Originally Posted by FreedomtoLive
Посмотреть сообщение
[21:58:00] >> mysql_ping() - Invalid connection handle. (You set: 7557736, Highest connection handle ID is 1).
The error is about connection handle, not ping.

Show the line in script, where you use mysql_ping.
Reply
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
The error is about connection handle, not ping.

Show the line in script, where you use mysql_ping.
print("MYSQL: Attempting to connect to server...");
samp_mysql_connect(sqlhost, sqluser, sqlpass);
samp_mysql_select_db(sqldb);
if(samp_mysql_ping()==0)
{
print("MYSQL: Database connection established.");
return 1;
}
else
{
print("MYSQL: Connection error, retrying...");
samp_mysql_connect(sqlhost, sqluser, sqlpass);
samp_mysql_select_db(sqldb);
if(samp_mysql_ping()==0)
Reply
#7

public MySQLCheckConnection()
{
if(samp_mysql_ping()==0)
{
return 1;
}
else
Reply
#8

What MySQL script are you currently editing?
Reply
#9

Quote:
Originally Posted by Steven82
Посмотреть сообщение
What MySQL script are you currently editing?
USING moderntopia game mode!
Reply
#10

Are you using the actual one, or the one that was updated to use BlueG's MySQL plugin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)