01.06.2016, 19:52
Hello,
I would like to do a command where when params is empty, it does an action but when i give an id, it does the action on the player. I'm currently using :
if(isnull(params))
{
}
else
{
}
Is there any way to do this with sscanf
2)
Also, i would like to do a cmd where either i give an id or a part of name of players in params. i'm currently using
if(!IsNumeric(params)) player1 = ReturnPlayerID(params);
is there any ways with sscanf
Thank for your answers
I would like to do a command where when params is empty, it does an action but when i give an id, it does the action on the player. I'm currently using :
if(isnull(params))
{
}
else
{
}
Is there any way to do this with sscanf
2)
Also, i would like to do a cmd where either i give an id or a part of name of players in params. i'm currently using
if(!IsNumeric(params)) player1 = ReturnPlayerID(params);
is there any ways with sscanf
Thank for your answers