17.08.2012, 20:58
Hey,
I was wondering how I would use something like strings in commands with Zcmd and Sscanf.
I am basically looking to create a '/duty' command for factions and jobs to use but I want to place it into one command. For example, if someone was in a cop they would do '/duty cop' to get their equipment or if someone had the taxi driver job and wanted to go on-duty they would do '/duty job'.
I know how to do this with integers in switches, just not sure with strings as this would make some of my commands a lot easier to use.
Thanks in advance.
I was wondering how I would use something like strings in commands with Zcmd and Sscanf.
I am basically looking to create a '/duty' command for factions and jobs to use but I want to place it into one command. For example, if someone was in a cop they would do '/duty cop' to get their equipment or if someone had the taxi driver job and wanted to go on-duty they would do '/duty job'.
I know how to do this with integers in switches, just not sure with strings as this would make some of my commands a lot easier to use.
Thanks in advance.