Command isn't working
#1

Hello.

My command, which looks like this:
pawn Код:
dcmd_ko(playerid,params[])
{
    #pragma unused params
    if(RCT[playerid]==1){
        new turt[2048];
        format(turt,sizeof(turt),"%s",destb());
        ShowPlayerDialog(playerid,rsb,2,"select plz",turt,"yes","no");
    }
    return 1;
}
isn't working. It returns the unknown command-message when tried in-game. It is included in onplayercommandtext (dcmd(ko,2,cmdtext), and I have the DCMD-define line. All my other commands work as they should. I have tried removing the lines
pawn Код:
new turt[2048];
format(turt,sizeof(turt=,"%s",destb());
and thus changing the line below to
pawn Код:
ShowPlayerDialog(playerid,rsb,2,"select plz",destb(),"yes","no")
but it dont work.

Is there anyone out there hearing my scream for some help?

Thanks, EirikhO.
Reply
#2

forgot to compile and upload/replace the script ?
Reply
#3

No, compiled and restarted. The error is in the script.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)