Strcmp to ZCMD
#1

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)