[Question] Connect to MYSQL in an include
#3

If you wanted to do it "OnGameModeInit" - why not just hook OnGameModeInit to suit your needs? OR create a stock with no arguments, and just run that in "OnGameModeInit"

eg;
pawn Код:
//In your include
stock MySQL_Connect()
{
     //Connect to sql here
}

//In GM script
public OnGameModeInit()
{
     MySQL_Connect();
     //rest of gminit
}
Reply


Messages In This Thread
[Question] Connect to MYSQL in an include - by Biesmen - 29.04.2011, 07:28
Re: [Question] Connect to MYSQL in an include - by Vince - 29.04.2011, 07:39
Re: [Question] Connect to MYSQL in an include - by Ash. - 29.04.2011, 08:07
Re: [Question] Connect to MYSQL in an include - by iggy1 - 29.04.2011, 08:15
Re: [Question] Connect to MYSQL in an include - by Biesmen - 29.04.2011, 09:28

Forum Jump:


Users browsing this thread: 2 Guest(s)