Converting Strcmp Commands in ZMDs.
#1

Hi,
I have Strcmp commands over +100 and i want to convert them in ZCMD. I also tried one filterscript (https://sampforum.blast.hk/showthread.php?tid=271043) but this filterscript was messing all of the commands.

Anyone got an idea how can i convert?
Reply
#2

Using your keyboard?
if(!strcmp -> CMD:..//(playerid, params[])
Reply
#3

It will take too much time. D:
No other way to covert?
Reply
#4

No. Just with ya' keyboard.
Reply
#5

I remember reading something about this before but yes it is very possible actually, simply something like this should work, just hit "Replace All".

Find; if(!strcmp(cmdtext, "
Replace; CMD:

Find; ", true) == 0)
Replace; (playerid, params[])
Reply
#6

You must also move them out of the OnPlayerCommandText(playerid, cmdtext[]) Callback...
Fixed Abagail Solution:

Код:
Find; if(strcmp(cmdtext, "/
Replace; CMD:

Find; if(!strcmp(cmdtext, "/
Replace; CMD:

Find; ", true, 10) == 0)
OR
Find; ", true) == 0)
Replace; (playerid, params[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)