07.07.2011, 12:48
hi,
i have a problem.
i created the command /do, and when i am doing it, it says "Unknown Command", but above it, it looks: /do [action]
I will give you a picture:
When I am writing the action, it does doing it, but it is very limited.
EDIT:
i have a problem.
i created the command /do, and when i am doing it, it says "Unknown Command", but above it, it looks: /do [action]
I will give you a picture:
When I am writing the action, it does doing it, but it is very limited.
EDIT:
PHP код:
if(strcmp( cmd, "/me", true ) == 0 )
{
if(IsPlayerConnected(playerid))
{
new tmp[128];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
return 0;
}
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new str[128];
format(str,sizeof(str),"*%s %s",sendername, tmp);
ProxDetector(10.0, playerid, str, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}
return 1;
}