29.04.2010, 20:19
Код:
if(dialogid == 2) { if(response) { if(listitem == 0) { if(GetPVarInt(playerid, "InMission") == 0) { SendClientMessage(playerid, COLOR_LGREEN, "You have successfully accepted the Mission"); SetPVarInt(playerid, "InMission", 1); TogglePlayerControllable(playerid,1); } else { SendClientMessage(playerid, COLOR_RED, "Please quit any other mission before."); } if(listitem == 1) { if(GetPVarInt(playerid, "InMission") == 1) { SendClientMessage(playerid, COLOR_LGREEN, "You have successfully quit the Mission"); TogglePlayerControllable(playerid,1); } else { SendClientMessage(playerid, COLOR_RED, "You haven't accepted this mission first."); } } } } } return 1; }
The first part of a code works great
Код:
if(listitem == 0) { if(GetPVarInt(playerid, "InMission") == 0) { SendClientMessage(playerid, COLOR_LGREEN, "You have successfully accepted the Mission"); SetPVarInt(playerid, "InMission", 1); TogglePlayerControllable(playerid,1); } else { SendClientMessage(playerid, COLOR_RED, "Please quit any other mission before."); }
Please can anyone help me how to fix so the 2nd itemlist will work also, PLEASE HELP ME!