25.08.2009, 19:50
This is my question when the server using the command''/me''nothing happens''/me smoke'' nothing happens D:
Whats the error?
Quote:
if (strcmp(cmd, "/me", true) == 0) { new string[120]; new player[24]; GetPlayerName(playerid,player,24); if(!strlen(cmdtext)) { SendClientMessage(playerid,COLOR_GREY,"Usage: /me [action]"); return 1; } format(string,sizeof(string),"%s %s",player,cmdtext[0]); for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetDistanceBetweenPlayers(playerid,i) <= 30 && i!=playerid) { SendClientMessage(i,COLOR_PURPLE,string); SendClientMessage(playerid,COLOR_PURPLE,string); return 1; } return 1; } |