Won't Load Money/Score.
#2

pawn Код:
public OnPlayerDisconnect( playerid )
{
   if(playerid!=INVALID_PLAYER_ID)
 {
    if( GetPVarInt( playerid, "pLog" ) == 1 )
    {
        new file[ 256 ]; format( file, sizeof file, DIRECTORY, pName( playerid ) );
        new INI:PlayerAcc = INI_Open( file );
        INI_WriteInt( PlayerAcc, "Money", GetPlayerMoney( playerid ) );
        INI_WriteInt( PlayerAcc, "Score", GetPlayerScore( playerid ) );
        INI_Close( PlayerAcc );
        SetPVarInt( playerid, "pLog", 0 );
    }
   }
    return ( 1 );
}
Try this ....
Reply


Messages In This Thread
Won't Load Money/Score. - by Brandondw8 - 18.05.2014, 03:47
Re: Won't Load Money/Score. - by Rittik - 18.05.2014, 04:14
Re: Won't Load Money/Score. - by Brandondw8 - 18.05.2014, 04:22
Re: Won't Load Money/Score. - by Rittik - 18.05.2014, 04:31
Re: Won't Load Money/Score. - by Ciandlah - 18.05.2014, 04:35
Re: Won't Load Money/Score. - by Brandondw8 - 18.05.2014, 04:35
Re: Won't Load Money/Score. - by Rittik - 18.05.2014, 04:37
Re: Won't Load Money/Score. - by Brandondw8 - 18.05.2014, 04:39
Re: Won't Load Money/Score. - by Brandondw8 - 18.05.2014, 04:42
Re: Won't Load Money/Score. - by Rittik - 18.05.2014, 04:45

Forum Jump:


Users browsing this thread: 1 Guest(s)