MessageToAdmins doesn't work[DINI]
#1

Hi, i'm using sscanf for cmd system and DINI for Users.
I've created a /report command. I'm Italian, then the command has Italian Phrases.

Код:
dcmd_segnala(playerid,params[])
{
 new id;
 new motivo[256];
 new utente[24];
 new criminale[24];
 new string[256];
 if(sscanf(params,"us",id,motivo)) SendClientMessage(playerid,COLOR_YELLOW,"Usa: /segnala <id/nome> <motivo> - Serve per segnalare un utente fastidioso agli Admin in Linea!");
 else
 {
  if(id == INVALID_PLAYER_ID) SendClientMessage(playerid,0xFF0000AA,"ID non connesso!");
  else
  {
   GetPlayerName(playerid,utente,sizeof(utente));
   GetPlayerName(id,criminale,sizeof(criminale));
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
    if(IsPlayerConnected(i))
    {
	 if(Account[i][pAdmin] >=1)
	 {
      format(string,sizeof(string),"{0000FF}<<<---[SEGNALAZIONE]--->>> {FFFFFF}[ %s ] {0000FF}ha segnalato {FFFFFF}[ %s ]{0000FF}----{FFFFFF}[{0000FF}Motivo:{FFFFFF} %s ]{0000FF} <<<---[SEGNALAZIONE]--->>>",utente,criminale,motivo);
      SendClientMessage(i,COLOR_WHITE,string);
     }
    }
   }
   format(string,sizeof(string),"[REPORT]--->>> [ %s ] ha segnalato [ %s ]----[Motivo: %s ]",utente,criminale,motivo);
   print(string);
   new File[300];
   format(File,sizeof(File),PATH,criminale);
   format(string,sizeof(string),"Da: %s - Per: %s",utente,motivo);
   dini_Set(File,"Report",string);
   Account[id][pReportNr]++;
  }
 }
return 1;
}
THE PROBLEM: This cmd doesn't send message to Admins. Then, this script doesn't work:
Код:
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
    if(IsPlayerConnected(i))
    {
	 if(Account[i][pAdmin] >=1)
	 {
      format(string,sizeof(string),"{0000FF}<<<---[SEGNALAZIONE]--->>> {FFFFFF}[ %s ] {0000FF}ha segnalato {FFFFFF}[ %s ]{0000FF}----{FFFFFF}[{0000FF}Motivo:{FFFFFF} %s ]{0000FF} <<<---[SEGNALAZIONE]--->>>",utente,criminale,motivo);
      SendClientMessage(i,COLOR_WHITE,string);
     }
    }
   }
I've already Tried with forward MessageToAdmins(ecc ecc ecc); public MessageToAdmins(ecc ecc ecc); but it does the same problem. Why?

Thanks for Replies
Reply


Messages In This Thread
MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:31
Re: MessageToAdmins doesn't work[DINI] - by Patrick - 13.03.2013, 22:36
Re: MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:41
Re: MessageToAdmins doesn't work[DINI] - by Patrick - 13.03.2013, 22:45
Re: MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:54
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 00:18
Re: MessageToAdmins doesn't work[DINI] - by Ananisiki - 14.03.2013, 00:21
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 00:30
Re: MessageToAdmins doesn't work[DINI] - by Ananisiki - 14.03.2013, 00:39
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 01:44

Forum Jump:


Users browsing this thread: 2 Guest(s)