SA-MP STRCMP > ZCMD Macro
#1

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!
Reply
#2

I don't think it's possible if I understood you right.
Reply
#3

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.
Reply
#4

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!
Reply
#5

Use ctrl + h which replaces everything.

Replace: if(strcmp(cmd, "/
With: CMD:

Replace: ", true) == 0)
With: (playerid,params[])
Reply
#6

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...
Reply
#7

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
Reply
#8

Quote:
Originally Posted by tyler12
Посмотреть сообщение
I tried using that and server closes.

Can it only hand so many commands at a time?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)