SA-MP STRCMP > ZCMD Macro -
UnknownGamer - 25.09.2013
Hi,
Is there any such thing, to where I can create a Macro using Pawno, to do the format for me?
Because with STRCMP it's got a space between the start of the line and where the command starts such as:
ZCMD -
http://prntscr.com/1tfsmg
STRCMP -
http://prntscr.com/1tfsrw
I need to budge each line back by 1 space as you can see, ZCMD starts at the start of the line, and STRCMP doesn't.
Is there any Macro I can use to do this? That'd make life so much easier.
Cheers!
Re: SA-MP STRCMP > ZCMD Macro -
CesarLT - 25.09.2013
I don't think it's possible if I understood you right.
Re: SA-MP STRCMP > ZCMD Macro -
DanishHaq - 25.09.2013
Either go to the first character of 1 line and press SHIFT + TAB or select multiple lines and use SHIFT + TAB, it'll backspace the same amount as it does with a normal TAB to go forward. This thing pissed me off numerous times too when I was a newbie, but when I found out how to do it, I was like EH MEH GAWD lol. Tell me if it goes well, or if that's what you wanted.
Re: SA-MP STRCMP > ZCMD Macro -
UnknownGamer - 25.09.2013
Quote:
Originally Posted by DanishHaq
Either go to the first character of 1 line and press SHIFT + TAB or select multiple lines and use SHIFT + TAB, it'll backspace the same amount as it does with a normal TAB to go forward. This thing pissed me off numerous times too when I was a newbie, but when I found out how to do it, I was like EH MEH GAWD lol. Tell me if it goes well, or if that's what you wanted.
|
Yep, that did it!
Omgawd. Been trying to work this out for AGEZZ! And been doing it 1 by 1, for AGEZ! D:
I got bored of it. Now I need a MACRO on how to replace STRCMP command name with CMD:commandname(playerid, params[])
Anyone know how to do this? +REP! For the line format!
Re: SA-MP STRCMP > ZCMD Macro -
tyler12 - 25.09.2013
Use ctrl + h which replaces everything.
Replace: if(strcmp(cmd, "/
With: CMD:
Replace: ", true) == 0)
With: (playerid,params[])
Re: SA-MP STRCMP > ZCMD Macro -
UnknownGamer - 25.09.2013
Quote:
Originally Posted by tyler12
Use ctrl + h which replaces everything.
Replace: if(strcmp(cmd, "/
With: CMD:
Replace: ", true) == 0)
With: (playerid,params[])
|
Yeah man, that screws up some of the STRCMP commands, because Cuerv0's bad coding wise, for 2 command names, Where as ZCMD just uses return_cmd.
if(!strcmp(cmdtext, "/inv", true) || !strcmp(cmdtext, "/inventory", true))
How would you do that, in a macro? So it actually only does that...
Re: SA-MP STRCMP > ZCMD Macro -
tyler12 - 25.09.2013
Quote:
Originally Posted by UnknownGamer
Yeah man, that screws up some of the STRCMP commands, because Cuerv0's bad coding wise, for 2 command names, Where as ZCMD just uses return_cmd.
if(!strcmp(cmdtext, "/inv", true) || !strcmp(cmdtext, "/inventory", true))
How would you do that, in a macro? So it actually only does that...
|
https://sampforum.blast.hk/showthread.php?tid=271043
Re: SA-MP STRCMP > ZCMD Macro -
UnknownGamer - 25.09.2013
Quote:
Originally Posted by tyler12
|
I tried using that and server closes.
Can it only hand so many commands at a time?