On Player Crash
#3

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
When the reason on OnPlayerDisconnect gets called as 0, it means the player had timedout or might have crashed. Instead of using the functions which gets the data from the game, store them on arrays. So when the player gets disconnected, you can send a 1 second delayed timer as if you're using R5 version of MySQL to save the data to the database. However, I suggest you to use threaded queries as it's faster and efficient on such cases.

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(reason == 0) { //If it's a crash:
         //Instead of using GetPlayerMoney or GetPlayerScore, store them on an array earlier.
        //Stuffs.
    }
    return 1;
}
how to use threaded mysql?
Reply


Messages In This Thread
On Player Crash - by AiRaLoKa - 16.05.2014, 08:25
Re: On Player Crash - by Lordzy - 16.05.2014, 08:33
Re: On Player Crash - by AiRaLoKa - 16.05.2014, 09:14
Re: On Player Crash - by Campbell- - 16.05.2014, 09:32
Re: On Player Crash - by AiRaLoKa - 16.05.2014, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)