20.09.2018, 08:21
Hi there,
In OnDialogResponse callback I have this line (Where the error is)
And I'm getting the error
However I have the command created and it is created before the dialog callback so I'm stuck on ideas on what it could be because it's defined...
In OnDialogResponse callback I have this line (Where the error is)
PHP код:
if(!response) return cmd_io1(playerid, "");
Код:
(2485) : error 017: undefined symbol "cmd_io1"
PHP код:
CMD:io1(playerid,params[])
{
new string[128];
new dialog[500];
for(new x;x<MAX_OSLOTS2;x++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, x))
{ format(string, sizeof(string), ""COL_WHITE"Slot:%d :: "COL_GREEN"Used 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,"Player Objects/Attachment: (Select Slot)", dialog, "Select", "Close(X)");
return 1;
}