CMD:OBJECTS
#1

Код:
CMD:objects(playerid,params[])
{
        new string[128];
        new dialog[128];
        for(new x;x<MAX_OSLOTS;x++)
        {
        if(IsPlayerAttachedObjectSlotUsed(playerid, x))
                {       format(string, sizeof(string), ""COL_WHITE"Slot:%d :: "COL_GREEN"Takked slot\n", x);    }
                else format(string, sizeof(string), ""COL_WHITE"Slot:%d\n", x);
                strcat(dialog,string);
        }
        }
        ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST,"Objects: (choice Slot)", dialog, "Choice", "Close(X)");
        return 1;
}
Код:
error 021: symbol already defined: "ShowPlayerDialog"
error 010: invalid function or declaration
"
show mi this error on line ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST,"Objects: (choice Slot)", dialog, "Choice", "Close(X)");
return 1;
Reply
#2

Have you heard of indentation? Try indenting your code properly, this will reveal the issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)