[Ajuda] Close Server nгo funciona
#4

Nгo @SpikeCompiler eu preciso й justamente salvar o servidor ao reiniciar.

@RodrigoMSR obrigado...
Mas com timer ainda tб bugado

Nгo teria como eu fazer tipo assim:
PHP код:
forward SalvarCasas(typeSS);
public 
SalvarCasas(typeSS) {
    new 
query[1030];
    for(new 
houseid 1houseid MAX_HOUSEShouseid++) {
        
mysql_format(ConnectMYSQLquerysizeof(query), "UPDATE `houses` SET `hType` = '%d', `hOwner` = '%d', `hOutPosX` = '%f', `hOutPosY` = '%f', `hOutPosZ` = '%f', `hLocked` = '%d', `hAlarm` = '%d', `hLockLVL` = '%d', `hArrombada` = '%d', `hMoney` = '%d', `hMaconha` = '%d', `hMaterial` = '%d', `hPassword` = '%d', `FHQ` = '%d' WHERE `hID` = '%i'",
            
HouseInfo[houseid][hType],
            
HouseInfo[houseid][hOwner],
            
HouseInfo[houseid][hOutPosX],
            
HouseInfo[houseid][hOutPosY],
            
HouseInfo[houseid][hOutPosZ],
            
HouseInfo[houseid][hLocked],
            
HouseInfo[houseid][hAlarm],
            
HouseInfo[houseid][hLockLVL],
            
HouseInfo[houseid][hArrombada],
            
HouseInfo[houseid][hMoney],
            
HouseInfo[houseid][hMaconha],
            
HouseInfo[houseid][hMaterial],
            
HouseInfo[houseid][hPassword],
            
HouseInfo[houseid][FHQ],
        
houseid);
        
mysql_pquery(ConnectMYSQLquery);
    }
    if(
typeSS 0) {
        if(
acabou_de_salvar_casas) {
            
SalvarGangs(typeSS);
        }
        
/* ao inves de
        SetTimerEx("SalvarGangs", TIME_SAVE_STEP, false, "i", typeSS);
        */
    
}

Dai ia salvando passo a passo atй chegar no ultimo e salvar tudo.
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)