In OnDialogResponse undefined symbol however the command is created.
#1

Hi there,

In OnDialogResponse callback I have this line (Where the error is)
PHP код:
if(!response) return cmd_io1(playerid""); 
And I'm getting the error
Код:
(2485) : error 017: undefined symbol "cmd_io1"
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...

PHP код:
CMD:io1(playerid,params[])
{
    new 
string[128];
    new 
dialog[500];
    for(new 
x;x<MAX_OSLOTS2;x++)
    {
        if(
IsPlayerAttachedObjectSlotUsed(playeridx))
        {    
format(stringsizeof(string), ""COL_WHITE"Slot:%d :: "COL_GREEN"Used Slot\n"x);    }
        else 
format(stringsizeof(string), ""COL_WHITE"Slot:%d\n"x);
        
strcat(dialog,string);
       }
       
ShowPlayerDialog(playeridDIALOG_ATTACH_INDEX_SELECTIONDIALOG_STYLE_LIST,"Player Objects/Attachment: (Select Slot)"dialog"Select""Close(X)");
    return 
1;

Reply
#2

Which command processor are you using?
Reply
#3

Pawn.CMD
Reply
#4

PHP код:
forward PC_OnInit(); // somewhere in ur gamemode
PC_EmulateCommand(playerid"/io1"); // Under dialog response 
Reply
#5

Awesome thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)