14.10.2013, 22:01
First, indentation is there to help you in this problem...
I was re-indenting then found this:
I was re-indenting then found this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{ // OPENING THE SWITCH!
case 1:
{
switch(listitem)
{
case 0:
case 1:
case 2:
}
}
} // CLOSING THE SWTCH
} // CLOSING RESPONSE
return 1; // This return will stop the callback...
// Now, from where the hell this comes?
// You'll need another switch...
// switch(something)
case 2:
{
switch(listitem)
{
case 0:
{
my code
}
case 1:
{
my code
}
case 2:
{
my code
}
}
}
}
}
return 1;
}

