Unknow Command on all Commands (dcmd)
#1

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.
Reply
#2

Same thing happened to me with dcmd, wtf
Reply
#3

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;
}
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)