[Ajuda] /GMX resetando stats do player
#9

Quote:
Originally Posted by zNaKa
Посмотреть сообщение
esse й o problema , geralmente pode desconectar o jogador, logo valor de tudo q for salvar vai ser 0 , entгo vai salvar como 0

Agora se jogador desconecta e salva й maior garantia q vai salvar.
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    
SalvarDados(playerid); // Chamamos a funзгo para salvar a conta do player que desconectar
    
return 1;

Tanto na public OnGameModeExit quanto na OnPlayerDisconnect chama a funзaх de salvamento.
Reply


Messages In This Thread
/GMX resetando stats do player - by MtPlayerZ - 01.06.2018, 15:02
Re: /GMX resetando stats do player - by Marllun - 01.06.2018, 21:43
Re: /GMX resetando stats do player - by MtPlayerZ - 02.06.2018, 13:28
Re: /GMX resetando stats do player - by NelsonC - 02.06.2018, 13:46
Re: /GMX resetando stats do player - by MtPlayerZ - 02.06.2018, 14:06
Re: /GMX resetando stats do player - by zNaKa - 02.06.2018, 15:14
Re: /GMX resetando stats do player - by MtPlayerZ - 02.06.2018, 15:16
Re: /GMX resetando stats do player - by zNaKa - 02.06.2018, 15:22
Re: /GMX resetando stats do player - by MtPlayerZ - 02.06.2018, 15:25
Re: /GMX resetando stats do player - by zNaKa - 02.06.2018, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)