Dialog why can't it open
#1

I have this Dialog but it won't open and i can't see a problem with it.

pawn Код:
command(rcsd, playerid, params[])
{
    #pragma unused params
    if(Groups[Player[playerid][Group]][CommandTypes] == 11 && Player[playerid][Group] != 0)
    {
        new string[ 128 ];
        if(IsPlayerInRangeOfPoint( playerid, 5, LockerPos2X, LockerPos2Y, LockerPos2Z) )
        {
            if( GetPlayerInterior( playerid ) == LockerPos2Int)
            {
                format( string, sizeof( string ), "%s Menu", Groups[Player[playerid][Group]][GroupName]);
                ShowPlayerDialog( playerid, 34132, DIALOG_STYLE_LIST, string, "Weapons\nClothing\n", "Select", "Cancel" );
            }
        }
    }
    return 1;
}
pawn Код:
case 34132:
            {
                switch( listitem )
                {
                    case 0: ShowPlayerDialog( playerid, 3431, DIALOG_STYLE_LIST, "Weapons", "Nitestick\nMace\nDeagle - $15000\nMP5 - $5000\nM4A1 - $25000\n", "Select", "Cancel" );
                    case 1: ShowPlayerDialog( playerid, 6922, DIALOG_STYLE_LIST, "Clothing", "Rank 1.\nRank 2.\nRank 3.\nRank 4.\nRank 5.\nRank 3 - 5. Bike clothes\nRank 1 - 4. Female clothes\n", "Select", "Cancel" );
                }
            }
pawn Код:
case 3431:
            {
                switch( listitem )
                {
                    case 0: GivePlayerWeaponEx( playerid, 3);
                    case 1: GivePlayerWeaponEx( playerid, 41);
                    case 2:
                    {
                        if( Groups[3][SafeMoney] >= 15000 )
                        {
                            Groups[3][SafeMoney] -= 15000;
                            SendClientMessage( playerid, WHITE, "You have withdrawn an Deagle. This has cost the Government $15,000, so use it properly" );
                            GivePlayerWeaponEx( playerid, 24);
                        }
                        else
                        {
                            SendClientMessage( playerid, WHITE, "The Government are unable to afford this weapon on your behalf." );
                        }
                    }
                   
                   
                   
                   
                                case 6922:
            {
                switch( listitem )
                {
                    case 0:
                    {
                        SetPlayerSkin( playerid, 280);
                        Player[playerid][LastSkin] = 280;
                    }
                    case 1:
                    {
                        SetPlayerSkin( playerid, 280 );
                        Player[playerid][LastSkin] = 280;
                    }
                    case 2:
                    {
                        SetPlayerSkin( playerid, 281);
                        Player[playerid][LastSkin] = 281;
                    }
                    case 3:
                    {
                        SetPlayerSkin( playerid, 267);
                        Player[playerid][LastSkin] = 267;
                    }
                    case 4:
                    {
                        SetPlayerSkin( playerid, 283);
                        Player[playerid][LastSkin] = 283;
                    }
                    case 5:
                    {
                        SetPlayerSkin( playerid, 284);
                        Player[playerid][LastSkin] = 284;
                    }
                    case 6:
                    {
                        SetPlayerSkin( playerid, 150);
                        Player[playerid][LastSkin] = 150;
                    }
                }
            }
Reply
#2

Post full fs please.
Reply
#3

pawn Код:
if(dialogid == 34132)
{
    switch( listitem )
    {
        case 0: ShowPlayerDialog( playerid, 3431, DIALOG_STYLE_LIST, "Weapons", "Nitestick\nMace\nDeagle - $15000\nMP5 - $5000\nM4A1 - $25000\n", "Select", "Cancel" );
        case 1: ShowPlayerDialog( playerid, 6922, DIALOG_STYLE_LIST, "Clothing", "Rank 1.\nRank 2.\nRank 3.\nRank 4.\nRank 5.\nRank 3 - 5. Bike clothes\nRank 1 - 4. Female clothes\n", "Select", "Cancel" );
    }
Reply
#4

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
Post full fs please.
Ive edited my first post.

Quote:
Originally Posted by Medal Of Honor team
Посмотреть сообщение
pawn Код:
if(dialogid == 34132)
{
    switch( listitem )
    {
        case 0: ShowPlayerDialog( playerid, 3431, DIALOG_STYLE_LIST, "Weapons", "Nitestick\nMace\nDeagle - $15000\nMP5 - $5000\nM4A1 - $25000\n", "Select", "Cancel" );
        case 1: ShowPlayerDialog( playerid, 6922, DIALOG_STYLE_LIST, "Clothing", "Rank 1.\nRank 2.\nRank 3.\nRank 4.\nRank 5.\nRank 3 - 5. Bike clothes\nRank 1 - 4. Female clothes\n", "Select", "Cancel" );
    }
I use this at the top

pawn Код:
public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[])
{
    if( response )
    {
        switch( dialogid )
        {
Reply
#5

It opens the menu fine if i set it to this dialog. So why won't it open the other is it something with the numbers?

pawn Код:
command(rcsd, playerid, params[])
{
    #pragma unused params
    if(Groups[Player[playerid][Group]][CommandTypes] == 11 && Player[playerid][Group] != 0)
    {
        new string[ 128 ];
        if(IsPlayerInRangeOfPoint( playerid, 5, LockerPos2X, LockerPos2Y, LockerPos2Z) )
        {
            if( GetPlayerInterior( playerid ) == LockerPos2Int)
            {
                format( string, sizeof( string ), "%s Menu", Groups[Player[playerid][Group]][GroupName]);
                ShowPlayerDialog( playerid, 3432, DIALOG_STYLE_LIST, string, "Duty On/Off\nWeapons\nClothing\n", "Select", "Cancel" );
            }
        }
    }
    return 1;
}
pawn Код:
case 3432:
            {
                switch( listitem )
                {
                    case 0:
                    {
                        if( Player[playerid][CopDuty] == 1)
                        {
                            SetPlayerColor( playerid, WHITE );
                            SendClientMessage( playerid, WHITE, "You are now off police duty." );
                            Player[playerid][CopDuty] = 0;
                            SetPlayerArmour( playerid, 0 );
                        }
                        else
                        {
                            Player[playerid][CopDuty] = 1;
                            SetPlayerColor( playerid, BLUE );
                            SetPlayerArmour( playerid, 100 );
                            SendClientMessage( playerid, WHITE, "You are now on police duty." );
                        }
                    }

                    case 1: ShowPlayerDialog( playerid, 3431, DIALOG_STYLE_LIST, "Weapons", "Nitestick\nMace\nDeagle - $15000\nMP5 - $5000\nM4A1 - $25000\n", "Select", "Cancel" );
                    case 2: ShowPlayerDialog( playerid, 6922, DIALOG_STYLE_LIST, "Clothing", "Rank 1.\nRank 2.\nRank 3.\nRank 4.\nRank 5.\nRank 3 - 5. Bike clothes\nRank 1 - 4. Female clothes\n", "Select", "Cancel" );
                }
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)