Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:svdomn(playerid, params[])
- {
- mysql_function_query(connects, "SELECT * FROM `house` WHERE `hOwned` = '0' AND `hKlass` = '0' ORDER BY `hID` DESC LIMIT 160", true, "FreeHousen", "d",playerid);
- return 1;
- }
- forward FreeHousen(playerid);
- public FreeHousen(playerid)
- {
- new rows, fields,string[50],stringall[4000];
- cache_get_data(rows, fields);
- if(rows)
- {
- new
- ID_H, Value_H, Klass_H;
- for(new i = 0; i < rows; i++)
- {
- ID_H = cache_get_field_content_int(i,"hID");
- Value_H = cache_get_field_content_int(i,"hValue");
- Klass_H = cache_get_field_content_int(i,"hKlass");
- format(string,sizeof(string),"Номер Дома: %d - %d$, Класс: %d\n",ID_H,Value_H,Klass_H);
- strcat(stringall, string);
- continue;
- }
- ShowPlayerDialog(playerid, 7071, DIALOG_STYLE_LIST, "Список свободных домов!",stringall, ".:Окей:.","");
- }
- else ShowPlayerDialog(playerid, 7071, DIALOG_STYLE_LIST, "{ED1858}Список свободных домов!", "{FF0000}Свободных Домов Нет", ".:Ок:.", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement