Define problem
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
Yes, the difference is that ZCMD uses ":", not "_" - it's a small but important different as colons aren't valid identifier characters, whereas underscores are.
Hmm i tried changing it, but im obviously doing something wrong again :P since DIALOG:0 becomes NULL (aka "")

pawn Код:
#define DIALOG:%0(%1,%2,%3,%4,%5,%6)    forward DIALOG:%0(%1,%2,%3,%4,%5,%6);   \
                                        DIALOG_USED[%0] = true;                 \
                                        public DIALOG:%0(%1,%2,%3,%4,%5,%6)

DIALOG:0(playerid, response, listitem, inputtext[])
{
    print("Test");
    return 1;
}

//And this is how i call the function at OnDialogResponse:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(DIALOG_USED[dialogid] == true)
    {
        new function[32];format(function,sizeof function,"DIALOG:%i",dialogid);
        return CallLocalFunction(function,"iiis",playerid,response,listitem,inputtext);
    }
    return CallLocalFunction("SD_OnDialogResponse","iiiis",playerid,dialogid,response,listitem,inputtext);
}
//Learnt this from you before you released Y_Hooks =P
#if defined _ALS_OnDialogResponse
    #undef OnDialogResponse
#else
    #define _ALS_OnDialogResponse
#endif
#define OnDialogResponse SD_OnDialogResponse
forward SD_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
Errors:
"D:\Projecten\sampserver\filterscripts\test.pwn(54 ) : error 020: invalid symbol name ""
D:\Projecten\sampserver\filterscripts\test.pwn(57) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Define problem - by gamer931215 - 03.09.2011, 13:47
Re: Define problem - by Speed - 03.09.2011, 13:58
Re: Define problem - by gamer931215 - 03.09.2011, 14:01
Re: Define problem - by gamer931215 - 03.09.2011, 14:04
Re: Define problem - by gamer931215 - 03.09.2011, 14:10
Re: Define problem - by iPLEOMAX - 03.09.2011, 14:18
Re: Define problem - by gamer931215 - 03.09.2011, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)