Stats not loading
#7

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
What the fuck are you doing? your code is totally WRONG! where did you learn that from? *lol'ing* - the code below should work, 99.9% positive.


pawn Код:
stock MySQL_Login(playerid)
{
    new Query[ 500 ];

    new EscapedName[ MAX_PLAYER_NAME ];
    mysql_escape_string( pInfo[playerid][Nick], EscapedName );

    format( Query, sizeof( Query ), "SELECT * FROM `playerdata` WHERE `nick` COLLATE latin1_general_cs = '%s'", EscapedName );
    mysql_query( Query );

    mysql_store_result( );
    if( mysql_num_rows( ) )
    {
        if( mysql_fetch_row_format( Query, "|" ) )
        {
            sscanf(Query, "p<|>iiiiii", pInfo[playerid][ID], pInfo[playerid][pAdmin], pInfo[playerid][pScore], pInfo[playerid][pMoney], pInfo[playerid][pKills], pInfo[playerid][pDeaths]);
        }
    }
    mysql_free_result( );  
    return pInfo[playerid][Logged] = 1;
}
I think the problem is my script itself, because this aint working either or i just forgot something.
Once i login i should be admin level 5 which i'm not. While i am on the database.
Reply


Messages In This Thread
Stats not loading - by Jimmy0wns - 03.01.2014, 21:07
Re: Stats not loading - by Danyal - 03.01.2014, 22:10
Re: Stats not loading - by Jimmy0wns - 03.01.2014, 22:31
Re: Stats not loading - by Patrick - 03.01.2014, 22:32
Re: Stats not loading - by Jimmy0wns - 03.01.2014, 22:39
Re: Stats not loading - by Patrick - 03.01.2014, 22:51
Re: Stats not loading - by Jimmy0wns - 04.01.2014, 07:29
Re: Stats not loading - by Danyal - 04.01.2014, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)