25.06.2010, 02:29
pawn Код:
stock GetPlayerNameFromSQLid(SQLid)
{
new query[53], pname[24]; // You don't need 256 cells...
format(query, sizeof(query), "SELECT `username` FROM `accounts` WHERE `SQLid` = '%d'", SQLid);
mysql_query(query);
mysql_store_result();
mysql_fetch_field("username", pname);
mysql_free_result();
return pname;
}