The description:
Alright, I've been talking with twilight for a while now, and she's been teaching me a few things here and there about the functionality of AMXX and all its different capabilities.
I had coded my own RP plugin system, which was a very large file, around 300kb.
Now, just recently after learning, that if I optimize my code and make it more dynamic towards one another, it'll run faster and improve performance for my server.
One step I have taken to try and "optimize" my code is to use seperate plugin files for different mods.
The other step I've taken is using my own FakeNatives to communicate between each plugin and receive the status of a variable.
I am having a bit of a problem, and she tried telling me how to XVAR but I'm just clueless once again. Now, she gave up on my and called me hopeless, so I'm here asking anyone else who knows.
The problem:
My CORE plugin file is the one that connects to the SQL database. I have specified my variables for the SQL as so:
Code:
//(SQL) Variables
public Sql:dbc
public Result:result
I have another plugin file called ADDONS, it does NOT connect to the SQL database, nor have the variables for it.
What I need to know is how can I execute a query from the ADDONS plugin off of the CORE plugins SQL connect, and still receive the result back?
I'm very confused and am still learning, so any help, I would appreciate it.
Thanks.
__________________