This command takes quite long to get to params..
#7

pawn Код:
stock MySQL_GetString(sqlid, fieldname[], tablename[])
{
    new query[256];
    format(query, sizeof(query), "SELECT `%s` FROM `%s` WHERE `id` = %d LIMIT 1", fieldname, tablename, sqlid);
    mysql_query(query);
    mysql_store_result();
    new iValue = mysql_fetch_int();
    mysql_free_result();
    return iValue;
}

Im presuming you mean get string.
Reply


Messages In This Thread
This command takes quite long to get to params.. - by Dokins - 02.03.2012, 22:42
Re: This command takes quite long to get to params.. - by Scenario - 02.03.2012, 23:23
Re: This command takes quite long to get to params.. - by Dokins - 02.03.2012, 23:28
Re: This command takes quite long to get to params.. - by Jefff - 02.03.2012, 23:32
Re: This command takes quite long to get to params.. - by Dokins - 02.03.2012, 23:35
Re: This command takes quite long to get to params.. - by Jefff - 02.03.2012, 23:37
Re: This command takes quite long to get to params.. - by Dokins - 02.03.2012, 23:40

Forum Jump:


Users browsing this thread: 1 Guest(s)