AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Possible close mysql connection from other .amxx ? (https://forums.alliedmods.net/showthread.php?t=121491)

waza123a 03-16-2010 08:10

Possible close mysql connection from other .amxx ?
 
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.

padilha007 03-16-2010 08:20

Re: Possible close mysql connection from other .amxx ?
 
use natives

Bishop 03-16-2010 08:34

Re: Possible close mysql connection from other .amxx ?
 
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.

waza123a 03-16-2010 11:41

Re: Possible close mysql connection from other .amxx ?
 
Quote:

Originally Posted by padilha007 (Post 1119059)
use natives

small example plz

Sylwester 03-16-2010 11:44

Re: Possible close mysql connection from other .amxx ?
 
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?


All times are GMT -4. The time now is 08:45.

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