Question about sscanf
#1

Heya folks.
Just a little question.

So, I am makin admin system for my Server, but I am stuck in one question.
I wanna do one command (for e.g. warn) which can warn all players on only one.
I mean, if I write
Код:
/warn Le reason
it will warn first player with name starting or inlcuding 'le' in.
But how can I do if I use this command:
Код:
/warn * reason
it will loop through all players and warn them? Actually, part with loop is understandable for me, only I dunno what specifier do I've to use in condition with sscanf..

Normally, it is
pawn Код:
if(sscanf(params, "us[255]", id, reason))
.. And u is only for id/part of nickname.. Somebody know solution?
Or I have to make one extra specifer to determinate if command has to execute for one or all players?

Sry about that question.. Imma just curious

Thx, Greetz,
LetsOWN
Reply


Messages In This Thread
Question about sscanf - by LetsOWN[PL] - 26.07.2012, 17:25
Re: Question about sscanf - by ViniBorn - 26.07.2012, 17:29
Re: Question about sscanf - by playbox12 - 26.07.2012, 17:45
Re: Question about sscanf [SOLVED] - by LetsOWN[PL] - 26.07.2012, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)