[CMD QUIESTION] - 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: [CMD QUIESTION] (
/showthread.php?tid=179753)
[CMD QUIESTION] -
FrankC - 28.09.2010
Can you use "dcmd" and "zcmd" in the same gamemode?
if yes, How?
Re: [CMD QUIESTION] -
LarzI - 28.09.2010
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)
Re: [CMD QUIESTION] -
FrankC - 28.09.2010
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..
Re: [CMD QUIESTION] -
Rachael - 28.09.2010
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.
Re: [CMD QUIESTION] -
FrankC - 28.09.2010
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.
Re: [CMD QUIESTION] -
LarzI - 28.09.2010
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 :] )