07.08.2011, 20:58
hello
have me small problem in this stock:
this always return -1...
what's the problem ?
thank's for the helpers
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;
}
what's the problem ?
thank's for the helpers