[Dcmd]How to make /Arrest[id] and /Arrest command
#3

Quote:
Originally Posted by you10
Посмотреть сообщение
You can use sscanf to check if they entered an id.
True, although if he's only going to use ID as parameter, not ID/Name, it would be much faster to just use the isnull function:

pawn Код:
if( isnull( params )) //no ID entered
{
    //do stuff
}
else
{
    //do other stuff
}
Reply


Messages In This Thread
[Dcmd]How to make /Arrest[id] and /Arrest command - by Admigo - 10.12.2012, 14:18
Re: [Dcmd]How to make /Arrest[id] and /Arrest command - by you10 - 10.12.2012, 14:42
Re: [Dcmd]How to make /Arrest[id] and /Arrest command - by LarzI - 10.12.2012, 14:46
Re: [Dcmd]How to make /Arrest[id] and /Arrest command - by Mustafa6155 - 10.12.2012, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)