SA-MP Forums Archive
Unknow Command on all Commands (dcmd) - 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: Unknow Command on all Commands (dcmd) (/showthread.php?tid=304641)



Unknow Command on all Commands (dcmd) - V_LOPE - 19.12.2011

hi.

well I have a lot of commands...
but now idk what happend:

OnPlayerCommandText
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(rules,5,cmdtext);
    return 0;
}
Some commands :
Код:
dcmd_rules(playerid, cmdtext[])
	{
        #pragma unused cmdtext
		SendClientMessage(playerid, COLOR_BLUE2, " ---= World War Ruels =---");
		SendClientMessage(playerid, COLOR_YELLOW, "1) Don't Use Any Kind of bugs");
		SendClientMessage(playerid, COLOR_YELLOW, "2) Don't Hacks / Cheats");
		SendClientMessage(playerid, COLOR_YELLOW, "3) Don't Insult/spam/flood");
		SendClientMessage(playerid, COLOR_YELLOW, "4) Respect All Players/Admins");
		SendClientMessage(playerid, COLOR_YELLOW, "5) Don't Score Farm");
		SendClientMessage(playerid, COLOR_YELLOW, "6) Don't Park Your Car On Other Players");
		SendClientMessage(playerid, COLOR_YELLOW, "7) Don't Spawn Kill");
		SendClientMessage(playerid, COLOR_YELLOW, "8) Don't Ask For Score or cash..etc");
		return 1;
	}
it's say Unknow command.


Re: Unknow Command on all Commands (dcmd) - sherlock - 20.12.2011

Same thing happened to me with dcmd, wtf


Re: Unknow Command on all Commands (dcmd) - Ballu Miaa - 20.12.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(rules,5,cmdtext);
    return 0;
}
Change this to


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(rules,5,cmdtext);
    return 1;
}



Re: Unknow Command on all Commands (dcmd) - iTorran - 20.12.2011

https://sampforum.blast.hk/showthread.php?tid=91354


Re: Unknow Command on all Commands (dcmd) - -Rebel Son- - 20.12.2011

As ballu said, it has to return 1...