Possible Lag or Script problem? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Possible Lag or Script problem? (
/showthread.php?tid=313664)
Possible Lag or Script problem? -
Tanush123 - 26.01.2012
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
Re: Possible Lag or Script problem? -
MP2 - 26.01.2012
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().
Re: Possible Lag or Script problem? -
Tanush123 - 26.01.2012
i am using my volt-host's mysql database, i added mysql_ping(1); under ongamemodeinit and that didn't fix anything
Re: Possible Lag or Script problem? -
MP2 - 26.01.2012
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?
Re: Possible Lag or Script problem? -
Tanush123 - 26.01.2012
Ip address, everything works fine on my volt-host server but on my samp_server(internet), it doesn't work
Re: Possible Lag or Script problem? -
MP2 - 26.01.2012
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.");
Re: Possible Lag or Script problem? -
Tanush123 - 26.01.2012
Well i fixed it now. Thanks for your replys