Salut! Am si eu o problema la sistemul de case, vreau sa fac in asa fel sa apara chiriasi ce au dat rent. M-am tot uitat prin alte gamemode-uri sa ma inspir poate ma ajuta, dar nimic, ba imi arata numele meu la chiriasi la unele verificari si alte ori nu apare niciun nume.
stock ShowRenters(playerid)
{
gQuery[0] = EOS;
new id, name[24], string[128];
mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `House` = '%d' LIMIT 50", PlayerInfo[playerid][pHouse]);
mysql_pquery(SQL, gQuery, "", "");
new Cache: result = mysql_query(SQL, gQuery);
cache_get_field_content(id, "Name", name);
format(name, sizeof(name), PlayerInfo[id][pName]);
if(id != INVALID_PLAYER_ID)
return format(string, sizeof(string), "%s (Online)\n", GetName(id));
format(string, sizeof(string), "%s (Offline)\n", GetName(id));
Dialog_Show(playerid, DIALOG_RENTERS, DIALOG_STYLE_LIST, "Renters", string, "Select", "Cancel");
cache_delete(result);
return true;
}
Acesta este stock-ul pe care am incercat sa il fac, daca m-ati putea ajuta ar fi bine.