MySQL | again not working.
#1

hello!

this stock again not working.
what's the problem ?

here the stock:

pawn Код:
stock GetPlayerLevel(playerid)
{
    new vreturn[256],query[256];
    format(query,256,"SELECT 'Level' FROM 'Users' WHERE Nick='%s'",GetName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_retrieve_row() == 1)
    {
      new buffer[10];
      mysql_fetch_field_row(buffer, "Level");
      format(vreturn,256,"%d",strval(buffer));
    }
    mysql_free_result();
    return strval(vreturn);
}
thank's for the helper (:
Reply


Messages In This Thread
MySQL | again not working. - by EviLpRo - 25.06.2011, 18:47
Re: MySQL | again not working. - by gimini - 25.06.2011, 18:58
Re: MySQL | again not working. - by EviLpRo - 25.06.2011, 19:03
Re: MySQL | again not working. - by kacper55331 - 25.06.2011, 19:06
Re: MySQL | again not working. - by gimini - 25.06.2011, 19:08
Re: MySQL | again not working. - by EviLpRo - 25.06.2011, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)