ZCMD , A few questions - 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: ZCMD , A few questions (
/showthread.php?tid=250152)
ZCMD , A few questions -
hackzor4 - 22.04.2011
I use zcmd at my gamemode , but i noticed because i done so maybe my OnPlayerCommand text wont work at all , is that possible?
And if so , should i use zcmd instead of Public OnPlayerCommandText?
Wat are the differences wich one its better to use and also , if i use zcmd would it be a good idea to delete public on playercommandtext?
Please help me with some answers thats all i ask , thanks guys
Re: ZCMD , A few questions -
[ADC]Aldi96 - 22.04.2011
use scanff is better i used zcmd and all teleports and commands dont worked!
i think you must to use the scanff to have the good job!
Re: ZCMD , A few questions -
admantis - 22.04.2011
Using ZCMD you can't use strcmp based commands or OnPlayerCommandText callback anymore.
Using ZCMD is the best way (or probably YCMD) to process commands, while sscanf a easy way to fetch the data from the string (make the parameters).
Re: ZCMD , A few questions -
hackzor4 - 22.04.2011
Quote:
Originally Posted by admantis
Using ZCMD you can't use strcmp based commands or OnPlayerCommandText callback anymore.
Using ZCMD is the best way (or probably YCMD) to process commands, while sscanf a easy way to fetch the data from the string (make the parameters).
|
I use zcmd and sscanf 2 , so you think its better this way , then the old on playercommandtext?
And also should i delete that on public playercommandtext from the source code of the gamemode?
Re: ZCMD , A few questions -
iggy1 - 22.04.2011
There are two callbacks added by zcmd if for some reason you must use strcmp for commands i think you could use it in one of those callbacks. OnPlayerCommandText Should be removed if your using zcmd.
Re: ZCMD , A few questions -
hackzor4 - 22.04.2011
Quote:
Originally Posted by iggy1
There are two callbacks added by zcmd if for some reason you must use strcmp for commands i think you could use it in one of those callbacks. OnPlayerCommandText Should be removed if your using zcmd.
|
Alright thanks !
But zcmd is better then public OnPlayerCommandText right?
Re: ZCMD , A few questions -
iggy1 - 22.04.2011
Yes its alot better than using OnPlayerCommandText (if theres more than one command). And its easier to use for sure.
Re: ZCMD , A few questions -
hackzor4 - 22.04.2011
Alright thanks mate !