Furthermore, you can start using command processors to make your commands, which make it a whole lot easier. I'd highly recommend you use y_commands, as it's one of the easiest command processors you can use. Here's the topic on y_commands describing what it does, how it does it etc. (read this first): https://sampforum.blast.hk/showthread.php?tid=169029, and here is a topic of how to make the commands with sscanf (makes it easier): https://sampforum.blast.hk/showthread.php?tid=290132.
PS: Once you get to know your stuff, there's a tutorial link on how to make server logs in my signature, use it if you wish, it will help you keep track of what's going on around your server in all directions.