14.08.2011, 15:42
Try this
pawn Код:
stock getPlayerAdminLevel(playerid)
{
new string[82], playername[24], PlayerAdminLevel;
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "SELECT `aLevel` FROM `accs` WHERE `pName` = '%s'", playername);
mysql_query(string);
mysql_store_result();
if(mysql_retrieve_row())
{
PlayerAdminLevel = mysql_fetch_int();
}
mysql_free_result();
return PlayerAdminLevel;
}