25.06.2011, 19:08
Ahh, sorry.
Try this
pawn Код:
stock GetPlayerLevel(playerid)
{
new query[100];
format(query,sizeof(query),"SELECT `Level` FROM `Users` WHERE `Nick`='%s' LIMIT 1",GetName(playerid));
mysql_query(query);
mysql_store_result();
if(mysql_retrieve_row() == 1) mysql_fetch_field_row(query, "Level");
mysql_free_result();
return strval(query);
}