Remake this CMD to ZCMD
#8

@Above users, it's params, not cmdtext. Also, it's not necessary to use sscanf for it. That's why there's 'isnull'.
Last, never use a cell of 256 in client/player message. The limit is only 128.
pawn Код:
#define isnull(%1) \
    ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
pawn Код:
CMD:v( playerid, params[ ] )
{
    if( playerDB[ playerid ][ vip ] )
    {
        if( isnull( params ) ) return SendClientMessage( playerid, GREEN, "* Naudojimas: /v [tekstas]" );
        new
            zin[ 128 ]
        ;
        format( zin, sizeof( zin ), "VIP: %s", params );
        SendClientMessageToAll( GREEN, zin );
    }
    return 1;
}
Reply


Messages In This Thread
Remake this CMD to ZCMD - by Louris - 20.11.2012, 15:06
Re: Remake this CMD to ZCMD - by Mustafa6155 - 20.11.2012, 15:09
Re: Remake this CMD to ZCMD - by Louris - 20.11.2012, 15:13
Re: Remake this CMD to ZCMD - by -=Dar[K]Lord=- - 20.11.2012, 15:16
Re: Remake this CMD to ZCMD - by Louris - 20.11.2012, 15:18
Re: Remake this CMD to ZCMD - by -=Dar[K]Lord=- - 20.11.2012, 15:18
Re: Remake this CMD to ZCMD - by Edvin - 20.11.2012, 15:19
Re: Remake this CMD to ZCMD - by Konstantinos - 20.11.2012, 15:19
Re: Remake this CMD to ZCMD - by Louris - 20.11.2012, 15:23
Re: Remake this CMD to ZCMD - by Konstantinos - 20.11.2012, 15:26

Forum Jump:


Users browsing this thread: 4 Guest(s)