SA-MP Forums Archive
Strcmp to ZCMD - 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: Strcmp to ZCMD (/showthread.php?tid=407877)



Strcmp to ZCMD - geohareas - 15.01.2013

Hello,

Well,i got a huge gamemode,scripted with Strcmp (86.532 lines).When i am compiling it,it takes 1-2 minutes to compile it,and i hope that if i script this again from Strcmp to ZCMD,it would be better and faster?

And I am asking you,how can i convert it to ZCMD?I had to leave scripting for long,to study,and now i am back i dont have the knowledge I had before,thats why i am asking you to help me if possible..

Thank you in advance,for reading my topic.
Hope to hear from you soon.

Best regards,
George


Re: Strcmp to ZCMD - Patrick - 15.01.2013

Change all
pawn Код:
if (strcmp("/command here", cmdtext, true, 10) == 0)
To
pawn Код:
#include <zcmd> /*make sure you have #include <zcmd>*/
CMD:command here(playerid, params)// remove params if you dont use any parameters



Re: Strcmp to ZCMD - ghostmaster - 15.01.2013

Right, but as would be the command does not quite understand'm very new in the area of ​​pawn; ^^


Re: Strcmp to ZCMD - Patrick - 15.01.2013

as "86.532 lines" that would be alot of work for you, maybe much better, stay on strcmp as being beginner or you could convert them all if you really want to "your choice". all are the same functions on strcmp and zcmd how you created command but it has some more features and much more faster than strcmp