MySQL Problem
#1

hello

have me small problem in this stock:

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();
    if(mysql_retrieve_row()) Kills = mysql_fetch_int();
    mysql_free_result();
    return Kills;
}
this always return -1...
what's the problem ?

thank's for the helpers
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)