ZCMD to STRCMP ? -
-CaRRoT - 11.09.2011
Well... i know that there is a Converter from STRCMP to ZCMD - but is there anything that converts From ZCMD to STRCMP ? if there please Tell
(Will add Rep+)
Regards,
Breto
Re: ZCMD to STRCMP ? -
=WoR=Varth - 11.09.2011
Quote:
Originally Posted by Breto
Well... i know that there is a Converter from STRCMP to ZCMD - but is there anything that converts From ZCMD to STRCMP ? if there please Tell
(Will add Rep+)
Regards,
Breto
|
Before I'm trying to help you, may I know why?
Re: ZCMD to STRCMP ? -
-CaRRoT - 11.09.2011
Quote:
Before I'm trying to help you, may I know why?
|
Cause i want to convert some ZCMD CMD's to STRCMP lol
Re: ZCMD to STRCMP ? -
Generation-X - 11.09.2011
Yeah, we know, but what's the point?
You want your script to be worse?
Re: ZCMD to STRCMP ? -
-CaRRoT - 11.09.2011
no lol , but i like to use STRCMP
Re: ZCMD to STRCMP ? -
Ash. - 11.09.2011
Quote:
Originally Posted by Breto
no lol , but i like to use STRCMP
|
strcmp is NOT a command processor! Just because you like to do it, shouldn't mean you sacrifice processing time! In fact it is also a longer way of creating a command!
pawn Код:
if(strcmp("/breto", cmdtext))
{
return SendClientMessage(playerid, 0xFFFFFFFF, "/breto was called"), 1;
}
Try adding that, then type /bre and it will be called, unless you add a length (and if you're picky, the case validation rule) you will encounter such bug.
So it will actually look like:
pawn Код:
if(strcmp("/breto", cmdtext, 6, false))
{
return SendClientMessage(playerid, 0xFFFFFFFF, "/breto was called"), 1;
}
When you could just do:
pawn Код:
CMD:breto(playerid, params[])
This way you have parameters worked out for you too...
Why you want to convert your ZCMD commands to a function that can't even be classed as a command processor, I don't know. It baffles me to think that you even like the strcmp way of doing things!
Anyway, I don't think there is a way to convert them, you'll have to go through them manually moving code and changing the header.
Re: ZCMD to STRCMP ? -
kingchandio - 11.09.2011
where can i find that converter strcmp to zcmd
Re: ZCMD to STRCMP ? -
AeroBlast - 11.09.2011
https://sampforum.blast.hk/showthread.php?tid=271043
Re: ZCMD to STRCMP ? -
AndreT - 11.09.2011
It would be better to abide by a
tutorial (indeed created by me) when converting. Those converters won't probably work with parameter commands!
Re: ZCMD to STRCMP ? -
seanny - 11.09.2011
@Breto, Alot of people here, perfer ZCMD, I generaly Aint an ZCMD maker, So if their was a ZCMD to Strcmp Converter, It would be used by me
Re: ZCMD to STRCMP ? -
Kush - 11.09.2011
Quote:
Originally Posted by seanny
@Breto, Alot of people here, perfer ZCMD, I generaly Aint an ZCMD maker, So if their was a ZCMD to Strcmp Converter, It would be used by me
|
There is no preference when comparing ZCMD and the use of strcmp.
Re: ZCMD to STRCMP ? -
=WoR=G4M3Ov3r - 11.09.2011
Why on earth would you wanna do that ?!, you should convert from STRCMP TO ZCMD, not STRCMP TO ZCMD.
ZCMD is wayyyyy better and faster from strcmp