Sync MySQL with server - 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: Sync MySQL with server (
/showthread.php?tid=563435)
Sync MySQL with server -
arad55 - 15.02.2015
Hello, I want to have some admin control panel in a website which is connected to the server's MySQL database. When the database updates on a specific user, it should trigger some gamemode function to update his stats ingame if he is online. Basically, how do I do this? Without having a loop every second/minute to check if the database updated. I want it to trigger the function on a specific user which has been updated from the control panel only. The control panel is ASP.NET.
Re: Sync MySQL with server -
Vince - 15.02.2015
Use the socket plugin.
Re: Sync MySQL with server -
Abagail - 15.02.2015
As Vince stated you can use the socket plug-in. However, the socket plugin is somewhat advanced so you should only use it if you know what you are doing.
Re: Sync MySQL with server -
arad55 - 16.02.2015
Quote:
Originally Posted by Abagail
As Vince stated you can use the socket plug-in. However, the socket plugin is somewhat advanced so you should only use it if you know what you are doing.
|
Is it hard learning about how to use it now? Is there any tutorial maybe?