AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Switch between 2 databases (https://forums.alliedmods.net/showthread.php?t=233058)

IAmReallyCool 01-09-2014 07:50

Switch between 2 databases
 
Hello. What I want to do is to switch between two DBs in one plugin, for example i save my points into 'points' DATABASE and i want to save logs into 'bans' database. How can I switch between 2 databases in PAWN? I know in php its pretty easy :
PHP Code:

mysql_query("USE points"); 

PHP Code:

mysql_query("USE bans"); 

How can I do something similar in PAWN?

YamiKaitou 01-09-2014 07:52

Re: Switch between 2 databases
 
1 tuple per database, simply create a second tuple

IAmReallyCool 01-09-2014 13:39

Re: Switch between 2 databases
 
Wont it overload server heavily if I save ADMIN ACTIONS (e.g. Kick, Slay, Gag, Ban) to MYSQL. I mean on every cmd use MYSQL QUERIES will be called, wont it overload server?

YamiKaitou 01-09-2014 14:06

Re: Switch between 2 databases
 
Use SQL_ThreadQuery if you are worried about that


All times are GMT -4. The time now is 10:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.