Where to find DCMD to ZCMD converter?
#1

I have a script, and it's using both DCMD and ZCMD (which, doesn't work, ofc) . I cannot do CMD: about 1 million times... is there a converter program to do this for my script?
Reply
#2

control h
Reply
#3

never heard of a converter in my life in samp. You can post the cmds here that your trying to convert, and ill do it for you.

Or if your just wanting to convert dcmd_ to CMD: then CTRL+H then replace dcmd_ to CMD: or the other way around. your choice. Remember this can be done in pawno no need for another text editor.
Reply
#4

Umm, can't you just use ctrl+h in a good text editor replace "dcmd_" with "CMD:"
Reply
#5

I see! Okay done. Thnx!:P
Reply
#6

Hm, what about strcmp and strtok? I have a lot of them.. no way i can convert them all..

When i type /mute, it doesn't say (Usage: /mute [ID]) because it just mutes me.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)