help dialog probleem?
#1

can any help me i cant find the problem
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response) {
        switch(dialogid) {
            case 1:
            {
                switch(listitem) {
                    case 0:                       //Rulez
                    {
                        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rulez","Respect The Players\nRespect The Rules\nDon't hack\nfor hacking you get permbanned","Close","");
                    }
                    case 1:                       //Commands
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Commands","Normal commands\nVIP Commands\nAdmin Commands","Close","");
                    }
                    case 2:                       //Admin rulez
                    {
                        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Admin Rulez","Dont TelePort Abuse\nDont GiveFree Money Skins and that sort things\nDont Abuse whit Commands","Close","");
                    }
                }
                return 1;
            }
            case 2:
            {
                switch(listitem) {
                    case 0:                       //Normal Command
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Normal Commands","CommingSoon","Close","");
                    }
                    case 1:                       //Commands
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Vip Commands","Commingsoon2","Close","");
                    }
                    case 2:                       //Admin rulez
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Admin Commands","CommingSoon3","Close","");
                    }
                }
                return 1;
            }
        }
        return 1:
       }
and thit are the errors
Quote:

C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1222) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1222) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1224) : warning 217: loose indentation
C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1224) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1224) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Documents and Settings\kids\Bureaublad\Exchange-Live V1.0\gamemodes\Exchange-Life.pwn(1229) : error 030: compound statement not closed at the end of file (started at line 1183)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Reply
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                switch(listitem)
                {
                    case 0:                       //Rulez
                    {
                        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rulez","Respect The Players\nRespect The Rules\nDon't hack\nfor hacking you get permbanned","Close","");
                    }
                    case 1:                       //Commands
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Commands","Normal commands\nVIP Commands\nAdmin Commands","Close","");
                    }
                    case 2:                       //Admin rulez
                    {
                        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Admin Rulez","Dont TelePort Abuse\nDont GiveFree Money Skins and that sort things\nDont Abuse whit Commands","Close","");
                    }
                }
                return 1;
            }
            case 2:
            {
                switch(listitem)
                {
                    case 0:                       //Normal Command
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Normal Commands","CommingSoon","Close","");
                    }
                    case 1:                       //Commands
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Vip Commands","Commingsoon2","Close","");
                    }
                    case 2:                       //Admin rulez
                    {
                        ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Admin Commands","CommingSoon3","Close","");
                    }
                }
                return 1;
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)