22.06.2014, 14:12
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:
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:
Chat output:
How would it be possible to do that?
Thanks in advance.
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!");
}
Input:
pawn Код:
/<command> Pot
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)
Thanks in advance.