DIALOGS, weird error!!
#1

pawn Код:
new listitems[] = "1\tDesert Eagle\n2\tGrenades\n3\tSawn-Off Shotgun\n4\tMolotov\n5\tRPG-7\n6\tAK47\n7\tM4\n";
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 2) {
        if(response) {
            new message[256+1];
            if(listitem == 0) {
                BLABLA
            } else if(listitem == 1) {
                BLABLA
      } else if(listitem == 2) {
                BLABLA
      } else if(listitem == 3) {
                BLABLA
      } else if(listitem == 4) {
                BLABLA
      } else if(listitem == 5) {
                BLABLA
      } else if(listitem == 6) {
                BLABLA
                return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/hehe", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"List of weapons:",listitems,"Get Gun","Cancel");
        return 1;
    }
    return 0;
}
error is:
Код:
error 030: compound statement not closed at the end of file (started at line 227)
LINE 227:
pawn Код:
new message[256+1];
Reply


Messages In This Thread
DIALOGS, weird error!! - by patchkinson - 05.12.2009, 12:32
Re: DIALOGS, weird error!! - by patchkinson - 05.12.2009, 13:32
Re: DIALOGS, weird error!! - by Joe Staff - 05.12.2009, 21:09
Re: DIALOGS, weird error!! - by patchkinson - 05.12.2009, 21:10
Re: DIALOGS, weird error!! - by Joe Staff - 05.12.2009, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)