/pbackup
#1

When I use strtok, is always to reconize the id after space bar, but how could I do to reconize A word and put it in a SendCopMessage(My Function) ?

Like a /backup command,

i.g. : /backup [Location] , Police Officer %s needs back up! (Location: %s)

Help?

Reply
#2

If you used DCMD and/or SSCANF this would be a doddle! If you're interested lookup "Fast Commands" on the wiki...
Reply
#3

I know it would easier, but i am begginer and I want to get advanced at strtok, so can you give a example?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)