Raised This Month: $ Target: $400
 0% 

Possible close mysql connection from other .amxx ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waza123a
Member
Join Date: Mar 2010
Old 03-16-2010 , 08:10   Possible close mysql connection from other .amxx ?
Reply With Quote #1

Is it possible to close mysql connection in A.amxx from B.amxx ?

I just don't know how global works in Amx mod x scripting..

if i define global variable:

new x; // in A.amxx

and

new x; // in B.amxx

they will conflict ?

Any useful info about global in amxx will help, thanks.
waza123a is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 03-16-2010 , 08:20   Re: Possible close mysql connection from other .amxx ?
Reply With Quote #2

use natives
__________________

padilha007 is offline
Bishop
Member
Join Date: Nov 2004
Location: Japan
Old 03-16-2010 , 08:34   Re: Possible close mysql connection from other .amxx ?
Reply With Quote #3

Unless everything has changed completely... don't tell anyone I am back >.> ... No a global variable is for the entire .amxx but will not transverse another. ( IE you create a global variable in a.amxx and identical name in b.amxx will not conflict. )

And if my memory serves ( but don't remember who maybe it was bail ) but quite awhile ago they had a nice article on global vs local variables in small... er sorry its not small anymore.

Last edited by Bishop; 03-16-2010 at 08:37. Reason: Additional information
Bishop is offline
Send a message via MSN to Bishop Send a message via Skype™ to Bishop
waza123a
Member
Join Date: Mar 2010
Old 03-16-2010 , 11:41   Re: Possible close mysql connection from other .amxx ?
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
use natives
small example plz
waza123a is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 03-16-2010 , 11:44   Re: Possible close mysql connection from other .amxx ?
Reply With Quote #5

Why do you need to close it like that and why do you need mysql connection since you can use SQL_ThreadQuery which does not need it?
__________________
Impossible is Nothing
Sylwester is offline
Reply


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 08:45.


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