15.09.2009, 14:32
Use dcmd and sscanf instead, it's much easier to use / understand.
With sscanf, you need to check for a string, then an integrer, so the format will be "sd".
Check the string (which will store the city) with strcmp for these: "lasventuras", "lv". If it is the same, tele the player to the location of that city the player has given.
Do the same for "sanfierro", "sf" and "lossantos", "ls"
DCMD and SSCANF
With sscanf, you need to check for a string, then an integrer, so the format will be "sd".
Check the string (which will store the city) with strcmp for these: "lasventuras", "lv". If it is the same, tele the player to the location of that city the player has given.
Do the same for "sanfierro", "sf" and "lossantos", "ls"
DCMD and SSCANF