Police dispatch
#3

Quote:
Originally Posted by Austin_Lynn
Try>>>> SendClientMessage(COLOR_DBLUE, "wstring");
Thats wosre, your sending "wstring" not the string

pawn Код:
SendClientMessage(playerid, COLOR_DBLUE, wstring);
There you go

EDIT: i looked at your code, would this work better ?

pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
 new name[MAX_PLAYER_NAME],kname[MAX_PLAYER_NAME],weaponname[MAX_PLAYER_NAME];
 GetPlayerName(playerid,name,sizeof(name));
 GetPlayerName(killerid,kname,sizeof(kname));
 GetWeaponName(reason,weaponname,sizeof(weaponname));
 new wstring[128];
 if(!strcmp(name,kname,true)) {
  format(wstring, sizeof(wstring), "%s has died (Unknown).", name);
 } else {
  format(wstring, sizeof(wstring), "%s has killed %s (%s).", kname,name,weaponname);
 }
 for ( new i = 0; i < MAX_PLAYERS; i++ ) {
  if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2) {
  SendClientMessage(i, COLOR_DBLUE, wstring); <--------------------no more error
  }
 }
Reply


Messages In This Thread
Police dispatch - by narutogeek11 - 02.03.2009, 05:28
Re: Police dispatch - by Austin_Lynn - 02.03.2009, 05:34
Re: Police dispatch - by JaYmE - 02.03.2009, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)