Taking 'Unknown Command' - 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: Taking 'Unknown Command' (
/showthread.php?tid=313035)
Taking 'Unknown Command' -
Thedya - 24.01.2012
Код:
if (strcmp("/music", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 1232, DIALOG_STYLE_LIST, "Başlık","Akcent\nAlexandra\nBasshunter\nGuetta\nGuetta2\nAntoine\nEdward\nEminem\nEminem2\nRihanna\nGuru\nInna\nPitbull\nPitbull2\nRkiller\nJeremih\nBEP\nLloyd\nChino\n2.Sayfa\nMьziği Durdur","1. Buton","2. Buton");
}
Command is warking but it says also 'unknown command' why ?
Re: Taking 'Unknown Command' -
Fj0rtizFredde - 24.01.2012
Add return 1; under the ShowPlayerDialog.
Re: Taking 'Unknown Command' -
Thedya - 24.01.2012
Ahh of course thanks.