19.01.2015, 00:04
its not working. This is what im using.
when i have more than one object it is stuck at telling me 1
Код:
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); new query[300]; mysql_format(MySQLCon, query, sizeof(query), "SELECT COUNT(*) as count FROM objects WHERE Owner = '%s';",name); mysql_query(MySQLCon, query); new rows, fields, temp[120]; cache_get_data(rows, fields); new string2[32]; format(string2, sizeof(string2), "You have %d Furniture Pieces", rows); SendClientMessage(playerid, COLOR_YELLOW, string2);