Converting Strcmp Commands in ZMDs. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Converting Strcmp Commands in ZMDs. (
/showthread.php?tid=584285)
Converting Strcmp Commands in ZMDs. -
SpikY_ - 03.08.2015
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?
Re: Converting Strcmp Commands in ZMDs. -
J0sh... - 03.08.2015
Using your keyboard?
if(!strcmp -> CMD:..//(playerid, params[])
Re: Converting Strcmp Commands in ZMDs. -
SpikY_ - 03.08.2015
It will take too much time. D:
No other way to covert?
Re: Converting Strcmp Commands in ZMDs. -
SpikeSpigel - 03.08.2015
No. Just with ya' keyboard.
Re: Converting Strcmp Commands in ZMDs. -
Abagail - 03.08.2015
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[])
Re: Converting Strcmp Commands in ZMDs. -
rajabilal555 - 21.06.2016
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[])