02.12.2012, 10:52
PHP код:
static sql1[90];
format(sql1, sizeof(sql1), "SELECT * FROM `users` WHERE `Name` = '%s'", inputtext);
mysql_query(sql1);
mysql_store_result();
if(mysql_retrieve_row())
{
new result[50];
mysql_fetch_field_row(result,"SQLID");
SendFormatMessage(playerid, -1, "His name is: %s | His SQLID is %d", inputtext, strval(result));
}