12.02.2015, 15:38
Hello, since i have 0 warning an 0 errors on this, it does not show up the dialog ingame so my guess is that there is something wrong in the dialog anyone does know what ?
Код:
if(dialogid == DIALOG_HOUSECLASS) { if(response == 1) { new houseid = GetPVarInt(playerid, "HOUSECLASS"); switch(listitem) { case 0: //small house { new rand = random(sizeof(HouseInteriorSmall)); HouseInfo[houseid][hInteriorX] = HouseInteriorSmall[rand][0]; HouseInfo[houseid][hInteriorY] = HouseInteriorSmall[rand][1]; HouseInfo[houseid][hInteriorZ] = HouseInteriorSmall[rand][2]; HouseInfo[houseid][hIntVW] = houseid+6000; HouseInfo[houseid][hIntIW] = HouseSmall[rand][0]; SendClientMessageEx(playerid, COLOR_WHITE, "You have set the house interior to a small interior"); } case 1: //medium house { new rand = random(sizeof(HouseInteriorMedium)); HouseInfo[houseid][hInteriorX] = HouseInteriorMedium[rand][0]; HouseInfo[houseid][hInteriorY] = HouseInteriorMedium[rand][1]; HouseInfo[houseid][hInteriorZ] = HouseInteriorMedium[rand][2]; HouseInfo[houseid][hIntVW] = houseid+6000; HouseInfo[houseid][hIntIW] = HouseMedium[rand][0]; SendClientMessageEx(playerid, COLOR_WHITE, "You have set the house interior to a medium interior"); } case 2: //large house { new rand = random(sizeof(HouseInteriorLarge)); HouseInfo[houseid][hInteriorX] = HouseInteriorLarge[rand][0]; HouseInfo[houseid][hInteriorY] = HouseInteriorLarge[rand][1]; HouseInfo[houseid][hInteriorZ] = HouseInteriorLarge[rand][2]; HouseInfo[houseid][hIntVW] = houseid+6000; HouseInfo[houseid][hIntIW] = HouseLarge[rand][0]; SendClientMessageEx(playerid, COLOR_WHITE, "You have set the house interior to a large interior"); } } SaveHouse(houseid); DeletePVar(playerid, "HOUSECLASS"); return 1; } else { new houseid = GetPVarInt(playerid, "HOUSECLASS"), rand = random(sizeof(HouseInteriorSmall)); HouseInfo[houseid][hInteriorX] = HouseInteriorSmall[rand][0]; HouseInfo[houseid][hInteriorY] = HouseInteriorSmall[rand][1]; HouseInfo[houseid][hInteriorZ] = HouseInteriorSmall[rand][2]; HouseInfo[houseid][hIntVW] = houseid+520; HouseInfo[houseid][hIntIW] = HouseSmall[rand][0]; SendClientMessageEx(playerid, COLOR_WHITE, "You have set the house interior to a medium interior"); SaveHouse(houseid); DeletePVar(playerid, "HOUSECLASS"); return 1; } }