How to check if params are empty?
#1

Hy guys in zcmd , how i can check if default param is empty/null

Like Here?


CMDoc(playerid,params[])
{
//If(Null?(params))
}
Reply
#2

pawn Код:
if(isnull(params)) return //message here or other function
Reply
#3

Yes, you can
pawn Код:
CMD:ooc( playerid, params[ ] )
{
    if( isnull( params ) ) return SendClientMessage( ... )
    // Code
    return 1;
}
OR
pawn Код:
CMD:ooc( playerid, params[ ] )
{
    if( !isnull( params ) )
    {
        // Code
    }
    else SendClientMessage( .. );
    return 1;
}
Reply
#4

thanks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)