06.07.2010, 11:57
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.
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.