STRCMP and ZCMD and DCMD in the same script!
#1

So I made a ZCMD command inside my script that is mixed between DCMD and STRCMP, logged ingame to test it and suddenly found out that the DCMD and STRCMP commands stopped working (unknown command always appear) except the ZCMD command that I made??, what that means?, what should I do? it's my first ZCMD command inside my mixed script.
Reply
#2

Here's the command:

pawn Code:
CMD:killtest(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    SetPlayerHealth(playerid, 0);
    return 1;
}
No errors/warnings..
Reply
#3

You should really consider using only one command processor
I know it might be a lot of work, but it's worth it in the end, believe me.
As for the command, do you have sscanf?
Reply
#4

I would recommend ZCMD, i using just ZCMD in my opinion its the best command processor.
Reply
#5

Why did you re-post ? an identical post to this is on the first page in this section !
Reply
#6

Change all your commands to ZCMD and your problem should be solved, it isn't that hard just compare the two commands and convert them
Reply
#7

Place the ZCMD code on the bottom of OnPlayerCommandText.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)