ZCMD or DCMD
#1

What is better, ZCMD or DCMD love more to work on DCMD that ZCMD
Reply
#2

There's been many threads on this in the past. ZCMD is the better one.
Reply
#3

Quote:
Originally Posted by Th3Pr0
There's been many threads on this in the past. ZCMD is the better one.
Ok, thank you, what about ZCMD vs sscanf
Reply
#4

You can use ZCMD and Sccanf together.

Example:
pawn Код:
CMD:heal(playerid, params[])
{
    new
        id;
    if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
    else
    {
        SetPlayerHealth(id, 100.0);
        SendClientMessage(id, 0x00FF00AA, "You have been healed");
        SendClientMessage(playerid, 0x00FF00AA, "Player healed");
    }
    return 1;
}
Command taken from the wiki: https://sampwiki.blast.hk/wiki/Fast_Commands#zcmd
Reply
#5

Oh i will read this thank you again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)