SA-MP Forums Archive
DCMD or 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DCMD or ZCMD? (/showthread.php?tid=248029)



DCMD or ZCMD? - Seven_of_Nine - 11.04.2011

I have a problem (again..) I downloaded ZCMD, and it makes my gamemode can't init.
If I type dcmd_kick it's an undefined symbol

How do I download DCMD or fix ZCMD (would be better to download DCMD)


Re: DCMD or ZCMD? - Carrot - 11.04.2011

dcmd isn't a download, it's a define.
Ant it depends.
If you want fast then use zcmd
If you want more organized gamemode or fs then use dcmd.


Re: DCMD or ZCMD? - Mokerr - 11.04.2011

ZCMD is faster and simpler then DCMD. But if you would like to use ZCMD you need to move all your commands out of OnPlayerCommand since its already used in the ZCMD include.


Re: DCMD or ZCMD? - Cameltoe - 11.04.2011

Dcmd isn't downloadable, Dcmd is an define to simplify strcmp commands.

Zcmd is proven alot faster then Dcmd.

its suppposed to be :

pawn Код:
command(kick,playerid,params[])



Re: DCMD or ZCMD? - Carrot - 11.04.2011

zcmd is just faster by miliseconds not seconds.
That's why i use dcmd.


Re: DCMD or ZCMD? - Rivera - 11.04.2011

zcmd is faster than dcmd... well this comment is useless. I mean, why you need faster commands? Faster or not, it processes everything it needs to make a good GM. You can use everything you want bro. Now, dcmd needs only an include:

pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
For zcmd, you need to download the include here


Re: DCMD or ZCMD? - Seven_of_Nine - 11.04.2011

C:\Users\folders..\gamemodes\seven.pwn(14) : error 001: expected token: "#endif", but found "-end of file-"


Re: DCMD or ZCMD? - Seven_of_Nine - 11.04.2011

so can somebody tell me how do I fix this thing? :]