Raised This Month: $ Target: $400
 0% 

FakeNatives & SQL - Help Please. (Problem Solved)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 02-26-2006 , 19:50   FakeNatives & SQL - Help Please. (Problem Solved)
Reply With Quote #1

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.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:28.


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