View Single Post
Old 21/05/2010, 06:06 PM   #7
WackoX
Guest
 
Posts: n/a
Default Re: (Error ID: 2006, MySQL server has gone away)

pawn Code:
forward CheckMySQL();
public CheckMySQL()
{
   if (!mysql_ping())
   {
     mysql_connect(host, user, database, pass);
   }
}

So that means put CheckMySQL(); on top of all functions which contains queries.