[HELP] Anyone got any idea?
#4

Quote:
Originally Posted by Moustafa
pawn Код:
if (strcmp("/dispatch", cmdtext, true, 9) == 0)
    {
      if(GetPlayerTeam(playerid) != 5) return SendClientMessage(playerid,COLOR_RED, "Identification Error - You need rank 1 to do this.");
      new str[256], pname[256];
      GetPlayerName(playerid, pname, 256);
      format(str, 256, ":: Dispatcher %s:%s", pname, cmdtext[9]);
      SendClientMessageToAll(COLOR_BLUE, str);
      return 1;
    }
Lol, the problem is in that: SendClientMessageToAll !

it should be like that:

pawn Код:
if (strcmp("/dispatch", cmdtext, true, 9) == 0)
    {
      if(GetPlayerTeam(playerid) != 5) return SendClientMessage(playerid,COLOR_RED, "Identification Error - You need rank 1 to do this.");
      new str[256], pname[256];
      GetPlayerName(playerid, pname, 256);
      format(str, 256, ":: Dispatcher %s:%s", pname, cmdtext[9]);
      SendClientMessage(COLOR_BLUE, str);
      string SendClientMessage(playerid, COLOR_BLUE, " Your string ");
      return 1;
    }
I THINK SO IT IS RIGHT.. not sure!
This just send a message to "me", not my team.
Reply


Messages In This Thread
[HELP] Anyone got any idea? - by FreddeN - 14.06.2009, 22:20
Re: [HELP] Anone got any idea? - by Weirdosport - 14.06.2009, 22:29
Re: [HELP] Anone got any idea? - by Moustafa - 14.06.2009, 23:46
Re: [HELP] Anone got any idea? - by FreddeN - 15.06.2009, 10:44
Re: [HELP] Anone got any idea? - by JoeDaDude - 15.06.2009, 10:47
Re: [HELP] Anone got any idea? - by FreddeN - 15.06.2009, 10:51
Re: [HELP] Anyone got any idea? - by JoeDaDude - 15.06.2009, 10:57
Re: [HELP] Anyone got any idea? - by FreddeN - 15.06.2009, 11:00

Forum Jump:


Users browsing this thread: 3 Guest(s)