SA-MP Forums Archive
Connect 2 SA-MP Servers[+REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Connect 2 SA-MP Servers[+REP] (/showthread.php?tid=330103)



Connect 2 SA-MP Servers[+REP] - Paul_Saint - 31.03.2012

Hello Friends.
Suppose i have two sa-mp hosted server. i have to connect both of them like My Server 1 & My Server 2 and someone made a account in My Server 1 So he can also able to use it my server 2 same password everything same as My Server 1 HoW To Do It. who give help me i and my friends give him or her Reputations


Re: Connect 2 SA-MP Servers[+REP] - Riddy - 31.03.2012

You can script both of them to connect to 1 userfile, so if you use something like MySQL or INI, You can make it connect/direct to the same directory of the userfile.


Re: Connect 2 SA-MP Servers[+REP] - Paul_Saint - 31.03.2012

How can you give me few idea please


Re: Connect 2 SA-MP Servers[+REP] - mevi - 31.03.2012

Paul, what you can do is basicly to connect 2 servers into the same mysql database.


Re: Connect 2 SA-MP Servers[+REP] - VOXrr - 31.03.2012

Well, it depends on your script, and how quick-and-dirty you want to be about it.
If you're using MySQL as your data store, just use the same database on both servers.

If it's a bog standard server using .ini files, there's a few things you can do.


Re: Connect 2 SA-MP Servers[+REP] - DeathTone - 31.03.2012

Mysql is the best idea, cause you don't have to link to other directories ect, just have both gamemodes connect to the same mysql database, ect. Very easy.