Kirill_Osipov
Дебютант
Здравствуйте уважаемые пользователи Pawno-Info.ru. Прошу помочь с квартплатой дома, проблема заключается в том что квартплата не снимается за дома класса "Времянки/вагон", почему не понятно
, а с остальных классов снимается, помогите пожалуйста...
С меня +ик)
PHP:
if(strcmp(cmd, "/home", true) == 0 || strcmp(cmd, "/hm", true) == 0)
{
new textcarss[25],acar1[25],acar111[25],bouse = PlayerInfo[playerid][pPhousekey], playername[24],string[ 500 ],yaz = PlayerInfo[playerid][pUluch]
,carh = PlayerInfo[playerid][pCar],value = HouseInfo[bouse][hValue];
new string11[255];
if(HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass] == 0) format(string11, sizeof(string11), "Времянка/вагон");
else if(HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass] == 1) format(string11, sizeof(string11), "Эконом класс");
else if(HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass] == 2) format(string11, sizeof(string11), "Мини-дом");
else if(HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass] == 3) format(string11, sizeof(string11), "Дом");
else format(string, sizeof(string), "Особняк");
switch(PlayerInfo[playerid][pCar]){
case 522: textcarss = "NRG-500";
case 521: textcarss = "FCR-900";
case 581: textcarss = "BF-400";
case 461: textcarss = "PCJ-600";
case 463: textcarss = "Freeway";
case 586: textcarss = "Wayfarer";
case 468: textcarss = "Sanchez";
case 481: textcarss = "BMX";
case 509: textcarss = "Bike";
case 510: textcarss = "Mountain Bike";
case 462: textcarss = "Faggio";
case 471: textcarss = "Cheetah";
case 415: textcarss = "Quad";
case 451: textcarss = "Turismo";
case 402: textcarss = "Buffalo";
case 603: textcarss = "Phenix";
case 602: textcarss = "Alpha";
case 587: textcarss = "Euros";
case 565: textcarss = "Flash";
case 506: textcarss = "Super GT";
case 556: textcarss = "Jester";
case 541: textcarss = "Bullet";
case 560: textcarss = "Sultan";
case 429: textcarss = "Banshee";
case 480: textcarss = "Comet";
case 477: textcarss = "ZR-350";
case 562: textcarss = "Elegy";
case 400: textcarss = "Landstalker";
case 401: textcarss = "Bravura";
case 405: textcarss = "Sentinel";
case 421: textcarss = "Washington";
case 426: textcarss = "Premier";
case 436: textcarss = "Previon";
case 445: textcarss = "Admiral";
case 458: textcarss = "Solair";
case 505: textcarss = "Rancher";
case 500: textcarss = "Mesa";
case 526: textcarss = "Fortune";
case 527: textcarss = "Cadrona";
case 546: textcarss = "Intruder";
case 540: textcarss = "Vincent";
case 550: textcarss = "Sunrise";
case 547: textcarss = "Primo";
case 585: textcarss = "Emperor";
case 579: textcarss = "Huntley";
case 543: textcarss = "Sadler";
case 535: textcarss = "Slamvan";
case 479: textcarss = "Regina";
case 404: textcarss = "Perenniel";
case 474: textcarss = "Hermes";
case 410: textcarss = "Manana";
case 422: textcarss = "Bobcat";
case 575: textcarss = "Broadway";
case 545: textcarss = "Hustler";
case 466: textcarss = "Glendale";
case 492: textcarss = "Greenwood";
case 516: textcarss = "Nebula";
case 467: textcarss = "Oceanic";
case 600: textcarss = "Picador";
case 529: textcarss = "Willard";
case 439: textcarss = "Stallion";
case 542: textcarss = "Clover";
case 517: textcarss = "Majestic";
case 549: textcarss = "Tampa";
case 536: textcarss = "Blade";
case 533: textcarss = "Feltzer";
case 496: textcarss = "Blista Compact";
case 418: textcarss = "Moonbeam";
case 475: textcarss = "Sabre";
case 566: textcarss = "Tahoma";
case 567: textcarss = "Savanna";
case 412: textcarss = "Voodoo";
case 576: textcarss = "Tornado";
case 534: textcarss = "Remington";
case 580: textcarss = "Stafford";
case 555: textcarss = "Windsor";
case 589: textcarss = "Club";
case 0: textcarss = "Нету";
case 411: textcarss = "Infernus";}
if(PlayerInfo[playerid][pCar] == 0)
{ format(acar1,sizeof(acar1),"{ff2900}Нету"); }else
{ format(acar1,sizeof(acar1),"%s",textcarss); }
new text1[30];
if(HouseInfo[bouse][hLock] != 0) { text1 = "{ff2900}Дом закрыт"; }else
{ text1 = "{34c924}Дом открыт"; }
new oplata2,oplata3, oplata = 32,oplata4 = 16;
oplata2 = oplata*HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass];
oplata3 = oplata4*HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass];
new acar11[25],tpd[32];
if(PlayerInfo[playerid][pSubsid] == 0)
{ format(acar11,sizeof(acar1),"%s",oplata2); }else
{ format(acar11,sizeof(acar1),"%s",oplata3); }
if(PlayerInfo[playerid][pSubsid] == 0)
{ format(acar111,sizeof(acar1),"Обычная"); }else
{ format(acar111,sizeof(acar1),"Субсидия"); }
switch (HouseInfo[PlayerInfo[playerid][pPhousekey]][hKlass]) {
case 0: { tpd = "1000"; }
case 1: { tpd = "3000"; }
case 2: { tpd = "6000"; }
case 3: { tpd = "9000"; }
default: { tpd = "10000"; } }
new cvet1 = PlayerInfo[playerid][pCvet][0], cvet2 = PlayerInfo[playerid][pCvet][1];
GetPlayerName(playerid, playername, sizeof(playername));
if (bouse == 255 && strcmp(playername, HouseInfo[bouse][hOwner], true) == 0) return SCM(playerid, -1, "{DB7093}[X]{ffffff}Вы не владеете домом!");
if (!IsPlayerInRangeOfPoint(playerid, 31.0,HouseInfo[bouse][hExitx], HouseInfo[bouse][hExity], HouseInfo[bouse][hExitz])) return SCM(playerid, -1, "{DB7093}[X]{ffffff}Вы не у себя дома!");
format(string, sizeof(string), ""W"Тип:\t\t\t\t\t"Y"%s\n"W"Район:\t\t\t\t\t%s \n"W"Номер дома:\t\t\t\t%d\
\nСтоимость:\t\t\t\t%d$\nКвартплата:\t\t\t\t%d$ за 1 час\
\nТип квартплаты:\t\t\t%s\nУровень улучшений:\t\t\t%d\
\nМодель домашнего авто:\t\t{00a6ff}%s\n"W"Номер модели:\t\t\t\t%d \
\nЦвета домашнего авто:\t\t\tID %d, ID %d\n"W"Статус:\t\t\t\t\t%s\n\
\n {7fff00}Для открытия панели управления вашим домом\
\n нажмите кнопку \"Изменить\"",string11,
GetHouseZone(bouse),bouse,value,
acar11,acar111,yaz,textcarss,
carh,cvet1,cvet2,text1);
ShowPlayerDialog(playerid, HMENU+1, 0, "{ffcf00}Информация о доме", string, "Изменить", "Отмена");return true;}
