24.08.2016, 08:32
The brackets are messed up and the case is not inside the switch along the rest. This is an example to show you:
and results to the exact same warnings/errors. Do you see the marked (red) closed bracket? It shouldn't be there at all. After indenting properly, we can figure out what is going on:
The opened brackets do not match the closed brackets. After removing that bracket that caused all this, it is now indented properly:
and causes no errors and warnings whatsoever.
---
So either indent the whole code from OnDialogResponse callback to find the problem or post the callback here.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch (dialogid) { case 0: { // code.. } case 1: { // code.. } } case 2: { // code.. } } return 0; }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch (dialogid) { case 0: { // code.. } case 1: { // code.. } } case 2: { // code.. } } return 0; }
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch (dialogid)
{
case 0:
{
// code..
}
case 1:
{
// code..
}
case 2:
{
// code..
}
}
return 0;
}
---
So either indent the whole code from OnDialogResponse callback to find the problem or post the callback here.