Need Help with Attachment
#1

hi guys,

My problem is pls look at the picture it's showing Slot Slot 0 (used) when I used another slot and it's keep increasing when I use another slots

pic

I just want to print Slot 0 (used), Slot 1 (used)

here is the code

pawn Код:
case DIALOG_HOLD:
        {
            if ( !response )
                return ( 1 );

            switch( listitem )
            {
                case 0:
                {
                    gsString[ 0 ] = EOS;
                    for ( new o = 0; o < sizeof( ObjectInfo ); o++ )
                        format( gsString, sizeof( gsString ), "%s\n{FF0000}%d) "W"%s", gsString, o, ObjectInfo[ o ][ o_n ] );

                    ShowPlayerDialog( playerid, DIALOG_SELECT_HOLD, DIALOG_STYLE_LIST, "{FF9900}Hold - Objects", gsString, "Hold", "Cancel" );
                }
                case 1:
                {
                    gsString[ 0 ] = EOS;

                    for ( new x; x < MAX_PLAYER_ATTACHED_OBJECTS; x++ )
                    {
                        if ( IsPlayerAttachedObjectSlotUsed( playerid, x ) )
                            format( gsString, sizeof( gsString ), "{FFA500}Slot {1589FF}%s%d {FF0000}(Used)\n", gsString, x );
                        else
                            format( gsString, sizeof( gsString ), "%s%d\n", gsString, x );
                    }

                    ShowPlayerDialog( playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, "{FF0000}Create new hold - Index Selection", gsString, "(Select)", "Cancel" );
                }
                case 2: ShowPlayerDialog( playerid, DIALOG_ATTACH_SETTINGS, DIALOG_STYLE_LIST, "{00FF00}Attachamets Settings", "{00FF00}Show hold on each your spawn\n{FF0000}Remove hold after spawn", "(Select)", "Cancel" );
            }
        }
Pls someone help
Reply


Messages In This Thread
Need Help with Attachment - by Vaishnav - 24.07.2014, 13:53
Re: Need Help with Attachment - by Vaishnav - 25.07.2014, 07:12
Re: Need Help with Attachment - by Threshold - 25.07.2014, 10:56
Re: Need Help with Attachment - by Vaishnav - 25.07.2014, 11:50
Re: Need Help with Attachment - by Threshold - 25.07.2014, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)