I think you want something like this:
Code:
format(query,1023,"SELECT nickname FROM amx_amxadmins WHERE username='%s'",admin_nick)
or this:
Code:
format(query,1023,"SELECT nickname FROM amx_amxadmins WHERE authid='%s'",admin_steamid)
Also, make sure you escape the player's name before formatting or you could end up with a nasty injection exploit.
__________________