First command in ZCMD.
#1

And then guys, I have a problem here that is the following, I never did command like this, the first time, when I type this command;

PHP код:
COMANDO:inventario(playeridparams[])
{
    new 
subcmd[128], subcmd2[128], iFloat:XFloat:YFloat:Z;
    if(
sscanf(params"s[128]I(-1)"subcmdi))
    {
        
SendClientMessage(playeridCOLOR_SEAGREEN"Digite: (/i)nventario (pegar, guardar e dropar).");
        return 
1;
    }
    if(!
strcmp(subcmd"dropar"true))
    {
        if(
sscanf(params"s[128]I(-1)"subcmd2i))
        {
             
SendClientMessage(playeridCOLOR_SEAGREEN"USE: (/i)nventario dropar [arma/marijuana/crack/cocaina]");
        }
        if(!
strcmp(subcmd2"arma"true))
        {
        } 
... it does not work properly, what did I do wrong at the time of creating the command?
Reply


Messages In This Thread
First command in ZCMD. - by SukMathcuck - 20.12.2016, 23:30
Re: First command in ZCMD. - by Dayrion - 21.12.2016, 01:36
Re: First command in ZCMD. - by SukMathcuck - 21.12.2016, 12:24
Re: First command in ZCMD. - by Sew_Sumi - 21.12.2016, 12:29
Re: First command in ZCMD. - by SukMathcuck - 21.12.2016, 16:10
Re: First command in ZCMD. - by Bolex_ - 21.12.2016, 16:14
Re: First command in ZCMD. - by Dayrion - 21.12.2016, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)