SA-MP Forums Archive
Command unknown - 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)
+--- Thread: Command unknown (/showthread.php?tid=521741)



Command unknown - Spartaaaaa - 24.06.2014

Hello,
in-game when i write /Cmds it's not working i don't know why it's not working? All commands working fine but /Cmds not working 'Unknown Command write /cmds for commands' but its not working



Re: Command unknown - kamiliuxliuxliux - 24.06.2014

Show that piece of script where you created /cmds command.



Re: Command unknown - Spartaaaaa - 24.06.2014

It's on GAMEMODE anyhelp?


Re: Command unknown - kamiliuxliuxliux - 24.06.2014


I need:
pawn Код:
CMD:cmds(...)
{
// i need what you wrote here
}
or:
pawn Код:
if(strcmp(cmdtext, "/cmds") == 0)
{
// or here
}



Re: Command unknown - Spartaaaaa - 24.06.2014

There is no
Код:
CMD:Cmds
pawn Код:
cmds(playerid, params [])
{
    ShowPlayerDialog(playerid, 9985, DIALOG_STYLE_MSGBOX, "{FF0000}» {D1D1D1}Commands", ShowCmds(), "Close","Next");
    return 1;
}



Re: Command unknown - kamiliuxliuxliux - 24.06.2014

You use ZCMD include?


Re: Command unknown - Spartaaaaa - 24.06.2014

Yes.


Re: Command unknown - kamiliuxliuxliux - 24.06.2014

So try to write it as CMD:cmds(playerid, params[]). Working perfectly for me.


Re: Command unknown - Spartaaaaa - 24.06.2014

Thanks +rep