LARP + MYSQL = LAAAAAGGGGG
#3

There is:
pawn Код:
UpdatePlayer( playerid );
in OnPlayerDisconnect

and the UpdatePlayer( playerid ):
pawn Код:
stock UpdatePlayer( playerid )
{
    // Funkcija: UpdatePlayer( playerid )
    // Atnaujins юaidлjo duomenш bazлs duomenis
   
    MySQL_Check( );
   
    if ( gPlayerLogged[ playerid ] )
    {
      new
            string[ 1024 ],
            length,
            sqlid = PlayerInfo[ playerid ][ pSQLID ];
           
        format( string, 1024, "UPDATE `zaidejai` SET WHERE `id`=%d",
                    PlayerInfo[ playerid ][ pSQLID ] );
        length = strlen( string );
       
         ALL STUFF TO SAVE THE ACCOUNT.
       
        if ( strlen( string ) > length )
          samp_mysql_query( string );
    }
}
Reply


Messages In This Thread
LARP + MYSQL = LAAAAAGGGGG - by kLx - 29.11.2009, 09:22
Re: LARP + MYSQL = LAAAAAGGGGG - by dice7 - 29.11.2009, 09:50
Re: LARP + MYSQL = LAAAAAGGGGG - by kLx - 29.11.2009, 10:14
Re: LARP + MYSQL = LAAAAAGGGGG - by kLx - 05.12.2009, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)