unknow mysql_ping
#5

Well yeah, you can't have two "else" within the same scope. Do it like this, though:
PHP код:
new connectionCount 1;
do
{
    
printf("connecting, attempt %d / %d"connectionCountMYSQL_CONNECTION_TRIES);
    
mConnectionHandle mysql_connect(...);
}
while(!
mConnectionHandle && connectionCount++ < MYSQL_CONNECTION_TRIES);
if(!
mConnectionHandle)
{
    
// failed to connect shiz
    
return 0;
}
// rest of gamemodeinit 
Reply


Messages In This Thread
unknow mysql_ping - by Face9000 - 06.06.2015, 21:04
Re: unknow mysql_ping - by Konstantinos - 06.06.2015, 21:41
Re: unknow mysql_ping - by Face9000 - 06.06.2015, 21:58
Re: unknow mysql_ping - by Face9000 - 06.06.2015, 22:03
Re: unknow mysql_ping - by Vince - 06.06.2015, 22:18

Forum Jump:


Users browsing this thread: 3 Guest(s)