AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Globalize mysql variables ? (https://forums.alliedmods.net/showthread.php?t=232219)

faki 12-27-2013 11:28

Globalize mysql variables ?
 
I have this:
Code:

if(SQL_NumResults(CheckALL) > 0) {
resultado = SQL_ReadResult(CheckALL, 1);
GetServer = SQL_ReadResult(CheckALL, 2);
GetPlayers = SQL_ReadResult(CheckALL, 3);
GetMaxPlayers = SQL_ReadResult(CheckALL, 4);


}

in
Code:

public MySql_Init()
{

how to use resultado, GetServer, GetPlayers and GetMaxPlayers in other public function and print right information, for example:
Code:

public server(id) {
client_print(id,print_chat,"%s",resultado);
}

?


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

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