The best command procesor
#8

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
ZCMD + sscanf
Here here!!

Quote:
Originally Posted by Steven82
Посмотреть сообщение
pawn Код:
Strcmp
Is going to be easier if your new to scripting, or in a hurry to do some work for someone or something idk
You do make a good point though strcmp can be used with ZCmd quite easily.

Quote:
Originally Posted by CuervO
Посмотреть сообщение
dcmd

the message was too lo... ahh screw it.
No, don't recommend that junk. Zcmd has been proven to process commands faster and with far less code.

Quote:
Originally Posted by The Toni
Посмотреть сообщение
Here is my code for a /me command with zcmd + sscanf.

pawn Код:
CMD:me(playerid, params[])
{
    if(sscanf(params, "s[128]", str))
    {
        return SendClientMessage(playerid, LBLUE, "Usage: /me (action)") &&
        SendClientMessage(playerid, ORANGE, "Function: make a me action");
    }
    format(str, sizeof(str), "* %s %s", pName(playerid), str);
    SendClientMessageToAll(PURPLE, str);
    return 1;
}
You really do not need to sscanf the params on a /me command. The way you have it makes the command inefficient.
Reply


Messages In This Thread
The best command procesor - by [SOB]Chris - 18.10.2010, 02:21
Re: The best command procesor - by [L3th4l] - 18.10.2010, 02:23
Re: The best command procesor - by Steven82 - 18.10.2010, 02:38
Respuesta: The best command procesor - by [SOB]Chris - 18.10.2010, 02:40
Re: Respuesta: The best command procesor - by Toni - 18.10.2010, 02:46
Re: The best command procesor - by CuervO - 18.10.2010, 02:53
Re: The best command procesor - by Toni - 18.10.2010, 02:55
Re: The best command procesor - by nemesis- - 18.10.2010, 03:01
Re: The best command procesor - by Toni - 18.10.2010, 03:07
Re: Respuesta: The best command procesor - by Niixie - 18.10.2010, 08:10

Forum Jump:


Users browsing this thread: 2 Guest(s)