2 /me problems
#1

Hello I am trying to make to make a /me command and used ProxDetector to make it.
My problem is that When i write /me with space it gives me a empty /me
Example:

/me(space) - * Me (space)

Another problem I encountered is that when i have a command that starts with me I get a problem.

Example:
/medic - The right usage is /me;

Can anyone help me?

This is my code:
Код:
  	if(!strcmp(cmdtext, "/me", true, 3))
    {
  		new find = strfind(cmdtext," ",true);
  		if(find == -1 || find >= 30) return SendClientMessage(playerid, COLOR_RED, "Right Usage: \"/me\" [text]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[find+1]);
        ProxDetector(170.0, playerid, str, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
        return 0;
	}
Reply


Messages In This Thread
2 /me problems - by MadalinX5 - 10.08.2011, 14:29
Re: 2 /me problems - by Aprezt - 10.08.2011, 14:34
Re: 2 /me problems - by Anzhelov - 10.08.2011, 15:14
Re: 2 /me problems - by MadeMan - 10.08.2011, 15:21
Re: 2 /me problems - by meD maN - 10.08.2011, 16:46
Re: 2 /me problems - by Aprezt - 10.08.2011, 16:49
Re: 2 /me problems - by Anzhelov - 10.08.2011, 17:39
Re: 2 /me problems - by Tanush123 - 10.08.2011, 17:40
Re: 2 /me problems - by [MG]Dimi - 10.08.2011, 18:04
Re: 2 /me problems - by meD maN - 10.08.2011, 20:36
Re: 2 /me problems - by MadalinX5 - 10.08.2011, 20:37
Re: 2 /me problems - by meD maN - 10.08.2011, 23:35
Re: 2 /me problems - by Zonoya - 10.08.2011, 23:44
Re: 2 /me problems - by Zonoya - 10.08.2011, 23:48

Forum Jump:


Users browsing this thread: 2 Guest(s)