Hello everybody I need more help.
need to make this query on the db
and change the name of the player for what is
recorded in the db.
PHP Code:
public client_connect(id)
{
new name[32];
get_user_name(id, name, sizeof (name));
new Handle:query = SQL_PrepareQuery(g_sql, "SELECT * FROM `admins` WHERE `name` = '%s'",name);
SQL_Execute(query);
new res[32];
if (SQL_MoreResults(query))
{
SQL_ReadResult(query, 0, res, sizeof (res));
SQL_FreeHandle(query);
}
if (!strlen(res))
{
what I put here???????????????????????? }
}