13.04.2010, 20:09
Hello, i made a dialog on a checkpoint, when you enter checkpoint it pops up as it should, but it does not activate the "bottom"
Can you see a error in it?
Код:
if(dialogid == 9) { if(response) { if(listitem == 0) { if(COP[playerid] == 0 && CIVIL[playerid] == 1) { SendClientMessage(playerid,COLOUR_BLUE,"You have joined the police!"); COP[playerid] = 1; CIVIL[playerid] = 0; return 1; } else if(ROBBER[playerid] >= 1) { SendClientMessage(playerid,COLOUR_RED,"You are on the other side of the law!"); return 1; } else { SendClientMessage(playerid,COLOUR_RED,"You are already a cop!"); return 1; } } if(listitem == 1) { if(COP[playerid] >= 1) { SendClientMessage(playerid,COLOUR_BLUE,"You left the police!"); COP[playerid] = 0; CIVIL[playerid] = 1; return 1; } else { SendClientMessage(playerid,COLOUR_RED,"You can't leave, as you are not a member!"); return 1; } } }