zcmd problem
#1

Hello,i've started using zcmd command processor and i've a problem.

pawn Код:
zmcd(me, playerid, params[])
    {
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "How to use: /me [action]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    SendClientMessageToAll(0xFF9900AA, str);
    }
"error 017: undefined symbol zmcd"

What's wrong?
Reply
#2

it would be, CMD:me(playerid, params[]) or COMMAND:me(playerid, params[]) i know there's another way but i use the first one there
Reply
#3

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
it would be, CMD:me(playerid, params[]) or COMMAND:me(playerid, params[]) i know there's another way but i use the first one there
Not working.
Reply
#4

Код:
CMD:me(playerid, params[])
    {
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "How to use: /me [action]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    SendClientMessageToAll(0xFF9900AA, str);
    }
Try this!
Reply
#5

pawn Код:
CMD:me(playerid, params[])
{
    if(isnull(params))return SendClientMessage(playerid, 0xFF0000FF, "How to use: /me [action]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, params);
    SendClientMessageToAll(0xFF9900AA, str);
    return true;
}
Reply
#6

Same errors for both
Reply
#7

Hmm show the error .. if its zcmd maybe forgot #include zcmd
Reply
#8

Quote:
Originally Posted by trapped1
Посмотреть сообщение
Hmm show the error .. if its zcmd maybe forgot #include zcmd
I've already the zcmd include.

"error 017: undefined symbol zmcd"
Reply
#9

Try mine again, it will work.
Reply
#10

Try this Logitech90.
pawn Код:
CMD:me(playerid, params[])
    {
    if(isnull(params)) {
SendClientMessage(playerid, 0xFF0000FF, "How to use: /me [action]");
  }
    else {
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, params);
    SendClientMessageToAll(0xFF9900AA, str);
}
    return 1;
}
EDIT: iPleoMax command will work also.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)