dcmd not works
#8

pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(command, 7, cmdtext); // the command, number of letters, cmdtext
return 0;
}

dcmd_command(playerid, params[])
{
#pragma unused params
SendClientMessage(playerid, color, "LOL");
return 1;
}
Reply


Messages In This Thread
dcmd not works - by Nonameman - 04.06.2010, 21:18
Re: dcmd not works - by Calgon - 04.06.2010, 21:20
Re: dcmd not works - by Nonameman - 04.06.2010, 21:26
Re: dcmd not works - by Calgon - 04.06.2010, 21:29
Re: dcmd not works - by Nonameman - 04.06.2010, 21:32
Re: dcmd not works - by Calgon - 04.06.2010, 21:33
Re: dcmd not works - by Nonameman - 04.06.2010, 21:36
Re: dcmd not works - by ViruZZzZ_ChiLLL - 04.06.2010, 21:50
Re: dcmd not works - by Nonameman - 04.06.2010, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)