10.08.2011, 14:29
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:
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;
}



: error 017: undefined symbol "ProxDetector"". If someone could help me with ProxDetector I woule be grateful 