help with ZCMD
#1

Hi guys. Is there a way to combine 2 commands into one with zcmd?

I mean something like this:

Код:
if(strcmp(cmd, "/st", true) == 0 || strcmp(cmd, "/something", true) == 0)
but using ZCMD so CMD:...

thx in advanced
Reply
#2

PHP код:
CMD:heal(playerid){
    
SetPlayerHealth(playerid100);
    
SendClientMessage(playerid0x00FF0088"You have healed yourself");
    return 
1;
}
CMD:h(playerid) return heal(playerid); 
Reply
#3

Nice, thank you a lot...
Reply
#4

It gives me these errors:

Код:
CMD:gov(playerid, params[]) return goverment(playerid, params[]);

F:\Samp server\gamemodes\BalkanKingRP.pwn(10747) : warning 211: possibly unintended assignment
F:\Samp server\gamemodes\BalkanKingRP.pwn(10751) : warning 211: possibly unintended assignment
F:\Samp server\gamemodes\BalkanKingRP.pwn(10761) : error 017: undefined symbol "goverment"
Reply
#5

PHP код:
CMD:cmds(playeridparams[])
{
    return 
cmd_commands(playeridparams);
}
CMD:commands(playeridparams[])
{
        return 
1;

try this it should work
Reply
#6

nah still doesn't work...

EDIT:nvm it does thx...
Reply
#7

okay good np
Reply


Forum Jump:


Users browsing this thread: