ZCMD doesn't work
#1

hello, i made this command:

PHP код:
    CMD:StartInfernusWar(playeridparams[])
{
    if(
ActOn[InfernusWar] == 1) return s(playerid,0x1EE1BAC8,"ERROR");
    
ActTimer[InfernusWar][0] = SetTimer("InfernusWarCD",1000,1);
    
ActOn[InfernusWar] = 1;
    return 
1;

can you tell me what is the problem? all other commands work perfectly :/
Reply
#2

When you send the command nothing happens or what? Make sure you have removed OnPlayerCommandText.
You could also add some print somewhere in your command, so you can check if it's actually being executed.
If you have OnPlayerCommandPermorfed or OnPlayerCommandReceived in your code, post them please.
Reply
#3

its return 0 SERVER unknown command
and yes, i removed OnPlayerCommandText
Reply
#4

then you know what is the problem on my code?
Reply
#5

Something must go wrong with ActTimer or ActOn, I had the same problem.
Reply
#6

Are you using DCMD and ZCMD, both together ?
They conflict with each other causing ZCMD not to work.
Reply
#7

try this

pawn Код:
CMD:startinfernuswar(playerid, params[])
{
    if(ActOn[InfernusWar] == 1) return s(playerid,0x1EE1BAC8,"ERROR");
    ActTimer[InfernusWar][0] = SetTimer("InfernusWarCD",1000,1);
    ActOn[InfernusWar] = 1;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)