MySQL Problem
#2

pawn Код:
stock GetPlayerKills(playerid)
{
    new Kills,szResult[128];
    format(szResult,128,"SELECT `Kills` FROM `Users` WHERE `Nick`='%s'",GetName(playerid));
    mysql_query(szResult);
    mysql_store_result();
    Kills = mysql_fetch_int();
    mysql_free_result();
    return Kills;
}
Have you tried taking out the retrieve row part like I showed in my above example? That may already be retrieving a result and moving it onto the next one, when there isn't any.
Reply


Messages In This Thread
MySQL Problem - by EviLpRo - 07.08.2011, 20:58
Re: MySQL Problem - by JaTochNietDan - 07.08.2011, 21:05
Re: MySQL Problem - by EviLpRo - 07.08.2011, 21:16
Re: MySQL Problem - by Johnson_boy - 07.08.2011, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)