unknown command...
#1

i made a command dcmd_showweapons and when i join the game and type the command it says unknown cmd....
here this is what i used to do this command..

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
after that i did this at oneplayercommandtext..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(showweapons,11,cmdtext);
    return 0;
}
And under onplayercommandtext i have put the command
pawn Код:
dcmd_showweapons(playerid,params[])
{
    new string[128];
    if(sscanf(params, "u", ID))
etccccccc............
Reply


Messages In This Thread
unknown command... - by iThePunisher - 17.02.2014, 13:20
Re: unknown command... - by Necip - 17.02.2014, 13:22
Re: unknown command... - by iThePunisher - 17.02.2014, 13:31
Re: unknown command... - by iThePunisher - 17.02.2014, 16:52
Re: unknown command... - by iThePunisher - 17.02.2014, 18:23
Re: unknown command... - by newbienoob - 17.02.2014, 18:25
Re: unknown command... - by Tadas - 18.02.2014, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)