Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
Im trying to make a sos
So someone types /sos [location]
and it sends a message to medicals, Showing there name, And what location they put down,
I know the sending to medicals, Its just to read what they put for location i wanna know,
Im using dcmd,
Posts: 602
Threads: 3
Joined: Jun 2009
Reputation:
0
Nice illegal bump.
Just read in the string from the user input in dcmd command.
Then use that in the output to the medics.
If that doesn't make sense then post your dcmd and i will take a look.
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
I havent got one, Im making it, But this is the main bit, So nothing of the command exists just yet
Posts: 602
Threads: 3
Joined: Jun 2009
Reputation:
0
Ok, well give it a try making it, and see how it goes (you can't ask people to code everything for you, unless you go to script request thread), then if you run into problems post.
Basically you can do a dcmd
dmcd_sos
then use sscanf to check for location
then send the message to all medics
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
1. This topic isent for the whole code, Just the bit to check for location
2. I wouldnt be asking if i knew how to use sscanf
3. I have no clue what to do when using sscanf
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
Its so they type
/sos [location]
So if they typed jsuhufghsudfs
It wud send a message to medic saying: jsuhufghsudfs, xd, will tht code do tht
Posts: 388
Threads: 11
Joined: Feb 2008
Reputation:
0
Yes, that's how that code works.