[Ajuda] Close Server nгo funciona
#1

Estou com problema ao finalizar servidor se tiver salvando dados antes:
PHP код:
CMD:shutdown(playerid) {
    
shutdownserver();
    return 
1;
}
forward shutdownserver();
public 
shutdownserver() {
    
SendRconCommand("exit");
    return 
1;
}
public 
OnGameModeExit() {
    
printf("1");
    
printf("2");
    
SalvarCasas();
    
printf("3");
    
SalvarGangs();
    
printf("4");
    
SalvarAtores();
    
printf("5");
    
SalvarEquipe();
    
printf("6");
    
SalvarVeiculos();
    
printf("7");
    
SalvarCaixas();
    
printf("8");
    
SalvarRadares();
    
printf("9");
    
SalvarGZs();
    
printf("10");
    
SalvarRoubos();
    
printf("11");
    
SalvarEmpresas();
    
printf("12");
    
mysql_close(ConnectMYSQL);
    
printf("13");
    return 
1;

Nos logs ficam:
Код:
[02:43:08] --- Server Shutting Down.
[02:43:08] 1
[02:43:08] 2
[02:43:08] 3
[02:43:08] 4
[02:43:09] 5
[02:43:09] 6
[02:43:09] 7
[02:43:09] 8
[02:43:09] 9
[02:43:09] 10
[02:43:09] 11
[02:43:09] 12
Mas nгo chega no 13, e nгo desliga nunca


Se eu deixar:
PHP код:
public OnGameModeExit() {
    
mysql_close(ConnectMYSQL);
    
printf("13");
    return 
1;

Desliga de boa...
O que pode ser?
Reply


Messages In This Thread
Close Server nгo funciona - by weex - 13.02.2018, 03:55
Re: Close Server nгo funciona - by RodrigoMSR - 13.02.2018, 05:15
Re: Close Server nгo funciona - by SpikeCompiler - 13.02.2018, 09:09
Re: Close Server nгo funciona - by weex - 13.02.2018, 14:42
Re: Close Server nгo funciona - by RodrigoMSR - 13.02.2018, 17:30
Re: Close Server nгo funciona - by weex - 17.02.2018, 23:24
Re: Close Server nгo funciona - by RodrigoMSR - 17.02.2018, 23:30
Re: Close Server nгo funciona - by weex - 18.02.2018, 21:33

Forum Jump:


Users browsing this thread: 2 Guest(s)