Raised This Month: $ Target: $400
 0% 

Globalize mysql variables ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
faki
Senior Member
Join Date: Jul 2013
Old 12-27-2013 , 11:28   Globalize mysql variables ?
Reply With Quote #1

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);
}
?

Last edited by faki; 12-27-2013 at 11:28.
faki is offline
Reply



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


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