06.10.2014, 18:50
I made a dialog for hospital but nothing happens when I choose one of the selections. Thats the part of my dialog;
Код:
if(dialogid == DIALOG_HOSPITAL) { if(response) { if(listitem == 0) { if(GetPlayerHealth(playerid) < 100 && GetPlayerMoney(playerid) >= 10000 && PlayerInfo[playerid][pHealthInsurance] < 0) { SetPlayerHealth(playerid,99); GivePlayerMoney(playerid, -10000); SendClientMessage(playerid, -1, "Your health increased."); } if(GetPlayerHealth(playerid) < 100 && GetPlayerMoney(playerid) < 10000 && PlayerInfo[playerid][pHealthInsurance] < 0) { SendClientMessage(playerid, -1, "Not enough money."); } if(GetPlayerHealth(playerid) < 100 && GetPlayerMoney(playerid) >= 10000 && PlayerInfo[playerid][pHealthInsurance] > 0) { SetPlayerHealth(playerid, 99); SendClientMessage(playerid, -1, "Your expenses was covered by health insurance."); } if(GetPlayerHealth(playerid) > 99 && GetPlayerMoney(playerid) >= 10000) { SendClientMessage(playerid, -1, "You don't need this."); } } } return 1; }