[help] strfind + sscanf.
#1

Hey.
Is there any tutoliar about sscanf using strfind.
For example i have a command:

Код:
new Player;
if(sscanf(params,"u",Player)) return SendClientMessage(playerid,COLOR,"Kick player: [ /kick player ]");
if(Player == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR,"Player is not online.");
Kick(Player);
In this situation, i must to write player's name from left to right without missing any letter.
If my name
Quote:

Martin_Miller

So i must to write:
Quote:

/kick mart

But if i write like this:
Quote:

/kick in_Miller

It says like people is offline.
I think you got what i want to.

Thanks for help.
Reply


Messages In This Thread
[help] strfind + sscanf. - by Martin_M - 06.03.2010, 16:29
Re: [help] strfind + sscanf. - by ¤Adas¤ - 06.03.2010, 16:36
Re: [help] strfind + sscanf. - by Martin_M - 06.03.2010, 16:41
Re: [help] strfind + sscanf. - by ¤Adas¤ - 06.03.2010, 16:47
Re: [help] strfind + sscanf. - by Martin_M - 06.03.2010, 17:02
Re: [help] strfind + sscanf. - by Martin_M - 06.03.2010, 17:47
Re: [help] strfind + sscanf. - by ¤Adas¤ - 06.03.2010, 17:49
Re: [help] strfind + sscanf. - by Martin_M - 06.03.2010, 18:47
Re: [help] strfind + sscanf. - by ¤Adas¤ - 06.03.2010, 18:49
Re: [help] strfind + sscanf. - by ¤Adas¤ - 06.03.2010, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)