sscanf partial name check
#1

Hey guys, I'm trying to make it so that in a command, sscanf(updated to the latest version), besides checking for multiple occurances, to display an additional informative message.
So i've got this:

pawn Код:
if(sscanf(params, "?<CELLMIN_ON_MATCHES=1>r", id)) return SendClientMessage(playerid, -1, "Wrong syntax!");
if (id == cellmin)
{
    return SendClientMessage(playerid, -1, "There are more than 1 player with that part of name in it!");
}
This is what I've done so far. What I want to do as well, is to make the command show in the chat the name of the players which sscanf met the part of text in. Something like:

Input:
pawn Код:
/<command> Pot
Chat output:
pawn Код:
There are more than 1 player with that part of text in their name! Please use an ID:
1. [TAG]Potato (ID 1)
2. Potato (ID 2)
3. ILovePot (ID 3)
How would it be possible to do that?
Thanks in advance.
Reply


Messages In This Thread
sscanf partial name check - by ReLoaD90 - 22.06.2014, 14:12
Re: sscanf partial name check - by Vince - 22.06.2014, 14:33
Re: sscanf partial name check - by ReLoaD90 - 22.06.2014, 14:39
Re: sscanf partial name check - by ReLoaD90 - 23.06.2014, 10:57
Re: sscanf partial name check - by ReLoaD90 - 23.06.2014, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)