mysql error
#2

Try this

pawn Код:
stock getPlayerAdminLevel(playerid)
{
    new string[82], playername[24], PlayerAdminLevel;
    GetPlayerName(playerid, playername, sizeof(playername));

    format(string, sizeof(string), "SELECT `aLevel` FROM `accs` WHERE `pName` = '%s'", playername);
    mysql_query(string);
    mysql_store_result();
    if(mysql_retrieve_row())
    {
        PlayerAdminLevel = mysql_fetch_int();
    }
    mysql_free_result();
    return PlayerAdminLevel;
}
Reply


Messages In This Thread
mysql error - by Unknown123 - 14.08.2011, 15:22
Re: mysql error - by MadeMan - 14.08.2011, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)