Possible Lag or Script problem?
#1

Well my script works on volt host and i also want to use my home host to sometimes add something before uploading to my volt host well here is the problem.
When i open samp_server.exe it loads fine on my cmd but for some reason it doesn't updates the server on sa-mp like update ping and other. I connect in game and i saw it shows Connecting. Joining the game... and its frozen like that...
Is this lag or something wrong with my script? There is no lag on volt host...

I got 13362 lines, plugins: mysql streamer, sscanf
Reply
#2

Ensure that you are correctly connecting to mySQL. You can't use 'localhost' from your local server to connect to the database on volt-host. Use mysql_ping().
Reply
#3

i am using my volt-host's mysql database, i added mysql_ping(1); under ongamemodeinit and that didn't fix anything
Reply
#4

mysql_ping doesn't have parameters. It checks whether the connection is dead. What is the HOST you are using in mysql_connect? Are you using 'localhost' or an IP address?
Reply
#5

Ip address, everything works fine on my volt-host server but on my samp_server(internet), it doesn't work
Reply
#6

Can you show your mysql_connect code? It should be like so:

pawn Код:
// Connect to mySQL
print("Connecting to mySQL...");

mysql_connect(...);

if(mysql_ping() == -1) print("mySQL connection failed.");
else print("mySQL connection established.");
Reply
#7

Well i fixed it now. Thanks for your replys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)