Help Me
#1

I Got Error In My Script SomeOne Please Help Meeee

pawn Код:
case DIALOG_ATTACH_MODEL_SELECTION: // Line 6777
        { // Line 6778
            if(response) // Line 6779
            { // Line 6780
                if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, listitem); // Line 6781
                else// Line 6782
                { // Line 6783
                    SetPVarInt(playerid, "AttachmentModelSel", AttachmentObjects[listitem][attachmodel]); // Line 6784
                    new string[256+1]; // Line 6785
                    for(new x;x<sizeof(AttachmentBones);x++) // Line 6786
                    { // Line 6787
                        format(string, sizeof(string), "%s%s\n", string, AttachmentBones[x]);// Line 6788
                    } // Line 6789
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, // Line 6790
                    "{FF0000}Attachment Modification - Bone Selection", string, "Select", "Cancel"); // Line 6791
                } // Line 6792
            } // Line 6793
            else DeletePVar(playerid, "AttachmentIndexSel"); // Line 6794
            return 1; // Line 6795
        } // Line 6796
        }
And I Got This Error :

Build01.pwn(6781) : warning 215: expression has no effect

Please Help Mee
Reply
#2

Try:
pawn Код:
case DIALOG_ATTACH_MODEL_SELECTION:
        {
            if(response)
            {
                if(GetPVarInt(playerid, "AttachmentUsed") == 1)
                {
                    EditAttachedObject(playerid, listitem);
                }
                else
                {
                    SetPVarInt(playerid, "AttachmentModelSel", AttachmentObjects[listitem][attachmodel]);
                    new string[256+1];
                    for(new x;x<sizeof(AttachmentBones);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentBones[x]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST,
                    "{FF0000}Attachment Modification - Bone Selection", string, "Select", "Cancel");
                }
            }
            else DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        }
Reply
#3

Check It -,-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)