[CMD QUIESTION]
#1

Can you use "dcmd" and "zcmd" in the same gamemode?
if yes, How?
Reply
#2

Uhm, I think so.. Why shouldn't you be able to use both?
Correct me if I'm wrong, but it should most probably work.

dcmd is a define line, while zcmd is an include..
But why do you want to use both?
zcmd is fastest, so I recommend just switching out the dcmd parts with zcmd, and learn how to use zcmd if you don't understand it already (which is basically exactly the same as dcmd)
Reply
#3

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Uhm, I think so.. Why shouldn't you be able to use both?
Correct me if I'm wrong, but it should most probably work.

dcmd is a define line, while zcmd is an include..
But why do you want to use both?
zcmd is fastest, so I recommend just switching out the dcmd parts with zcmd, and learn how to use zcmd if you don't understand it already (which is basically exactly the same as dcmd)
Yes well.. i dont know if you remember i was asking how to convert dcmd to zcmd for some time ago
and i watched your tutorial (btw its good) but i didnt really understand the sscanf part, so i though it
might be easyer to have both.. because some codes are easyer to convert..
Reply
#4

In theory it is possible, but you will need to read the thread
https://sampforum.blast.hk/showthread.php?tid=91354

OnPlayerCommandText is not meant to be used with zcmd. There is a replacement callback, OnPlayerCommandRecieved.

Basically you are making it difficult of you try to use both systems, just use zcmd.
Reply
#5

Quote:
Originally Posted by Rachael
Посмотреть сообщение
In theory it is possible, but you will need to read the thread
https://sampforum.blast.hk/showthread.php?tid=91354

OnPlayerCommandText is not meant to be used with zcmd. There is a replacement callback, OnPlayerCommandRecieved.

Basically you are making it difficult of you try to use both systems, just use zcmd.
Yes okay, well guess im going to try harder

Thanks guys.
Reply
#6

sscanf is used in both zcmd and dcmd, so you should really try to understand it.
Go here: https://sampwiki.blast.hk/Fast_Commands
There is all you need to know about sscanf for simple usage.
Also check out the sscanf2 topic by ****** (it's an include release).
It is explained very well how to use sscanf

Good luck! ^^

(And yeah, I remember you :] )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)