SA-MP Forums Archive
Command isn't working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Command isn't working (/showthread.php?tid=111667)



Command isn't working - EirikhO - 03.12.2009

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.


Re: Command isn't working - ExoSanty - 03.12.2009

forgot to compile and upload/replace the script ?


Re: Command isn't working - EirikhO - 03.12.2009

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