Dcmd question.
#2

If your only ever expecting a single string input from the command, get rid of the sscanf altogether.

Remove your id variable.

Replace if(sscanf(params,"s",id)) with a param null check.

Replace if(sscanf(params,"deagle",id)) with a simple strcmp check.
Reply


Messages In This Thread
Dcmd question. - by oliverrud - 06.07.2010, 11:44
Re: Dcmd question. - by Betamaster - 06.07.2010, 11:57
Re: Dcmd question. - by oliverrud - 06.07.2010, 12:03
Re: Dcmd question. - by Betamaster - 06.07.2010, 12:07
Re: Dcmd question. - by oliverrud - 06.07.2010, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)