Help with OnDialogResponse
#1

What's wrong with this?

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
//------------------Weapons Dialog-----------------------
    if(dialogid == DIALOG_WEAPONS)
        if(response)
        {
        switch(dialogid)
            {
                case 1://Our Dialog
            {
                switch(listitem)//Checking which was selected
                {
                    case 0://first item
                    {
                        GivePlayerWeapon(playerid, 24, 90);
                    }
                    case 1: //second item
                    {
                        GivePlayerWeapon(playerid, 30, 250);
                    }
                }
            }
        }
        }
    return 1;
    }
//------------Teles Dialog---------------
    if(dialogid == DIALOG_TELES)
        {
        if(response)
            {
            switch(dialogid)
                {
                    case 1:
                }
                    switch(listitem)
                    {
                        case 0:
                        {
                            SetPlayerPos(playerid, 1334.5587,1304.8950,10.5095);
                            SetPlayerInterior(playerid, 0);
                        }
                    }
                }
                }
            }
            return 1;
    }
I keep getting these errors, and it is only on the second dialog menu, which is the teles menu

pawn Код:
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(229) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(231) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(233) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(235) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(237) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(245) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
Help with OnDialogResponse - by Zach7 - 07.08.2013, 02:59
Re: Help with OnDialogResponse - by Edix - 07.08.2013, 03:04
Re: Help with OnDialogResponse - by Naruto_Emilio - 07.08.2013, 03:10
Re: Help with OnDialogResponse - by Zach7 - 07.08.2013, 03:10
Re: Help with OnDialogResponse - by Zach7 - 07.08.2013, 03:12
Re: Help with OnDialogResponse - by PT - 07.08.2013, 03:19
Re: Help with OnDialogResponse - by Zach7 - 07.08.2013, 03:38

Forum Jump:


Users browsing this thread: 3 Guest(s)