Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:testdoma(playerid, params[])
- {
- mysql_function_query(connects, "SELECT * FROM `House` WHERE `hOwned` = '0' AND `hKlass` = '0' ORDER BY `hOwned` DESC LIMIT 20", true, "FreeHouses", "d",playerid);
- return 1;
- }
- forward FreeHouses(playerid);
- public FreeHouses(playerid)
- {
- new rows, fields,string[50],stringall[1000];
- cache_get_data(rows, fields);
- if(rows)
- {
- new
- ID_H, Value_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");
- format(string,sizeof(string),"Íîìåð Äîìà: %d - %d$, Êëàññ: 0\n",ID_H,Value_H);
- strcat(stringall, string);
- continue;
- }
- ShowPlayerDialog(playerid, 7071, DIALOG_STYLE_MSGBOX, "Ñïèñîê ñâîáîäíûõ äîìîâ!",stringall, ".:Îêåé:.", "");
- }
- else ShowPlayerDialog(playerid, 7071, DIALOG_STYLE_MSGBOX, "{ED1858}Ñïèñîê ñâîáîäíûõ äîìîâ!", "{FF0000}Ñâîáîäíûõ Äîìîâ Íåò", ".:Îê:.", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement