Where to find DCMD to ZCMD converter?
#7

try to use this:

pawn Код:
tmp = strtok(cmdtext,idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, LIGHTBLUE2, "Usage: /mute[PlayerID]");
                SendClientMessage(playerid, orange, "Function: Mutes a player");
                return 1;
            }
            target = ReturnUser(tmp);
or the most fastest way sscanf

https://sampforum.blast.hk/showthread.php?tid=120356
pawn Код:
CMD:mute(playerid, params[])
{
     new target;
     if(sscanf(params, "u", target)) return SendClientMessage(playerid, red, "Usage:/mute [ID]");
//do your cmd here
     return 1;
}
Reply


Messages In This Thread
Where to find DCMD to ZCMD converter? - by Eminem 2ka9 - 18.03.2013, 23:14
Re: Where to find DCMD to ZCMD converter? - by sampreader - 18.03.2013, 23:18
Re: Where to find DCMD to ZCMD converter? - by kamzaf - 18.03.2013, 23:19
Re: Where to find DCMD to ZCMD converter? - by ReneG - 18.03.2013, 23:19
Re: Where to find DCMD to ZCMD converter? - by Eminem 2ka9 - 18.03.2013, 23:32
Re: Where to find DCMD to ZCMD converter? - by Eminem 2ka9 - 18.03.2013, 23:44
Re: Where to find DCMD to ZCMD converter? - by kamzaf - 19.03.2013, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)