Org chat /f

Započeo Qiyamet, Mart 27, 2022, 00:26:14 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim : moj mod od 0
Opis problema : pravim f chat od jutros  :'( :'( i ne mogu da rijesim problem. Ukratko, kad je leader sam u org i posalje /f poruku on vidi svoju poruku, kada lider ubaci igraca u org i salje /f poruku, poruku vidi samo igrac ( znaci lider vise ne vidi f chat nikako ). Ne znam do cega je problem. Pokuso sam vec 3 put komandu od 0 da "sklepam" al nikako ne ide.
Dio skripte : YCMD:f(playerid, params[], help)
{
   new chat_message[256], PlayerName[MAX_PLAYER_NAME], string[512];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
   if( PlayerInfo[playerid][pOrg] > 0 )
   {
       if( sscanf( params, "s[256]", chat_message )) return SendClientMessage(playerid, 0xFFFFFFFF, "{4080BF}[{CCCCCC}Uputa{4080BF}] {4080BF}/{FFFFFF}f {4080BF}[{FFFFFF}Text{4080BF}]");
      for( new i = 0; i <= MAX_PLAYERS; i++ )
      {
          if( PlayerInfo[i][pOrg_rank] == 1 )
          {
              format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_1], PlayerName, i, chat_message);
         }
         else if( PlayerInfo[i][pOrg_rank] == 2 )
         {
              format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) :kaze {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_2], PlayerName, i, chat_message);
         }
         else if( PlayerInfo[i][pOrg_rank] == 3 )
         {
              format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_3], PlayerName, i, chat_message);
         }
         else if( PlayerInfo[i][pOrg_rank] == 4 )
         {
              format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_4], PlayerName, i, chat_message);
         }
         else if( PlayerInfo[i][pOrg_rank] == 5 )
         {
              format(string, sizeof(string), "{4080BF}**(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_5], PlayerName, i, chat_message);
         }
         else if( PlayerInfo[i][pOrg_rank] == 6 )
         {
              format(string, sizeof(string), "{4080BF}***(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_6], PlayerName, i, chat_message);
            }
           
         if( PlayerInfo[i][pOrg] == PlayerInfo[playerid][pOrg] ) return SendClientMessage(i, 0xFFFFFFFF, string);
      }
   }
   else return SendClientMessage(playerid, 0xFFFFFFFF, "{CC3300}(RG) {CCCCCC}Niste u organizaciji{CC3300}!");
   return 1;
}

Slika/Video: //
Hvala unaprijed. Pomagajte ko boga vas molim  :D :D :D
Poslednja Izmena: Maj 01, 2022, 23:17:10 POSLE PODNE od Deleted User
Alen Hadzimustafic

LOL, kako sam postavljo ovu temu, skontam da sam ja zapravo retardiran  :D :D :D
format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[i][pOrg]][oRank_1], PlayerName, i, chat_message);
pogresno formatirana poruke
ovako treba izlgedat
format(string, sizeof(string), "{4080BF}*(( {CCCCCC}%s {FFFFFF}%s {4080BF}(%i) kaze: {FFFFFF}%s {4080BF}))", OrganizationInfo[PlayerInfo[playerid][pOrg]][oRank_1], PlayerName, playerid, chat_message);
Lock!.
Hvala!!
Alen Hadzimustafic