if(dialogid == 3)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Drivingschool:", "Take theory test\n take practical test", "Ok", "Cancel");
return 1;
}
if(dialogid == 4)
{
if(responce)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Which side of the road should you drive?", "Left\nRight","Ok","Cancel");
}
case 1:
{
SendClientMessage(playerid, red, "WIP");
}
}
}
else
{
SendClientMessage(playerid, red, "You cancelled");
}
return 1;
}
if(dialogid == 5)
{
if(responce)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, red, "wrong");
}
case 1:
{
SendClientMessage(playerid, green, "You've got your license");
dlic[playerid]=1;
}
}
}
else
{
SendClientMessage(playerid, red, "You cancelled");
}
return 1;
}
|
Код:
if(dialogid == 3)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Drivingschool:", "Take theory test\n take practical test", "Ok", "Cancel");
return 1;
}
if(dialogid == 4)
{
if(responce)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Which side of the road should you drive?", "Left\nRight","Ok","Cancel");
}
case 1:
{
SendClientMessage(playerid, red, "WIP");
}
}
}
else
{
SendClientMessage(playerid, red, "You cancelled");
}
return 1;
}
if(dialogid == 5)
{
if(responce)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, red, "wrong");
}
case 1:
{
SendClientMessage(playerid, green, "You've got your license");
dlic[playerid]=1;
}
}
}
else
{
SendClientMessage(playerid, red, "You cancelled");
}
return 1;
}
|