12.10.2012, 05:43
Just include ZCMD (and exclude YCMD) and change all the 'YCMD:' to 'CMD:'.
So, if you have this:
Change it to:
The fastest way to change ALL the "YCMD:" to "CMD:" is like this:
1) In pawno, press CTRL+H
2) In the "Search for:" box, typ: YCMD:
3) In the "Replace with:" box, typ: CMD:
4) Press ENTER
( 5) Press F5 to compile )
And then it's done. Should be done within a minute.
As for the params[], I guess that script is using SSCANF (it params are used). This also works in ZCMD (obviously). If you can't seem to done this, you can send your .PWN script to me in PM (and upload this script on pastebin as "private" or something) and I will do this for you, and send it back. But since this work is so easy, I don't think you'll fail in doing this.
So, if you have this:
pawn Код:
#include <a_samp>
#include <YCMD>
YCMD:command(playerid, params[])
{
//Command
}
pawn Код:
#include <a_samp>
#include <zcmd>
CMD:command(playerid, params[])
{
//Command
}
1) In pawno, press CTRL+H
2) In the "Search for:" box, typ: YCMD:
3) In the "Replace with:" box, typ: CMD:
4) Press ENTER
( 5) Press F5 to compile )
And then it's done. Should be done within a minute.
As for the params[], I guess that script is using SSCANF (it params are used). This also works in ZCMD (obviously). If you can't seem to done this, you can send your .PWN script to me in PM (and upload this script on pastebin as "private" or something) and I will do this for you, and send it back. But since this work is so easy, I don't think you'll fail in doing this.