01.03.2016, 13:31
Код:
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 "
return 1;