ytka558
Нуль
- Регистрация
- 16 Авг 2019
- Сообщения
- 1
- Лучшие ответы
- 0
- Репутация
- 0
Как сделать, чтобы не один дом продавался по ID, а все дома сразу?
PHP:
else if(strcmp(cmd, "/asellhouse", true) == 0)
{
tmp = strcharsplit(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, " Введите: /asellhouse [houseid]");
new house = strval(tmp);
if(FD1 || FD2 || FD3)
{
if(PlayerInfo[playerid][pAdmin] == 14)
{
format(mysql_query, sizeof(mysql_query), "UPDATE `Accounts` SET `pPhousekey` = '255' WHERE `Name` = '%s'",HouseInfo[house][hOwner]);
mysql_function_query(connects, mysql_query, true, "", "");
HouseInfo[house][hHel] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
SendClientMessage(playerid, COLOR_GREY, "Квартира продана");
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
GameTextForPlayer(playerid, stringer, 10000, 3);
format(stringer,64," * Admin %s sell house, House ID: %d", PlayerInfo[playerid][pNames], house);
AdmLog(stringer);
BuyHousee();
return true;
}
}
else SendClientMessage(playerid, COLOR_GREY, "Вы не главный администратор!");
return true;
}