Jump to content
  • 0

Sistem de salvare(backup)


Question

Posted

Salutare, vreau sa va intreb cum se face un sistem de backup, adica la fiecare ora fixa(payday) sa se salveze conturile undeva, ce anume imi trebuie sau cum sa fac. Multumesc.

4 answers to this question

Recommended Posts

Posted

Adauga in gm-u tau :

forward SaveAccounts();

la ongamemodeinit

accountstimer = SetTimer("SaveAccounts", 1800000, 1); // se salveaza din 30 in 30 de minute conturile.

[pawn]public SaveAccounts()

{

    for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

OnPlayerUpdateEx(i);

if(PlayerInfo[pJob] > 0)

    {

        if(PlayerInfo[pContractTime] < 25)

        {

PlayerInfo[pContractTime] ++;

}

    }

}

}

}

[/pawn]

signature.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=93.119.26.222&port=7777&bg_image=
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.