hlmod.hu
https://hlmod.hu/

Forditás probléma
https://hlmod.hu/viewtopic.php?f=9&t=30251
Oldal: 1 / 1

Szerző:  ✪ BeNiCh' [ 2020.02.09. 13:42 ]
Hozzászólás témája:  Forditás probléma

Sziasztok, valaki valami megoldást?

UI - de buta vagyok megoldva.

megoldás.
  1. stock ChatColor(const id, const input[], any:...)
  2. {
  3.     new count = 1, players[32]
  4.     static msg[191]
  5.     vformat(msg, 190, input, 3)
  6.  
  7.     replace_all(msg, 190, "!g", "^4") // Green Color
  8.     replace_all(msg, 190, "!y", "^1") // Default Color
  9.     replace_all(msg, 190, "!t", "^3") // Team Color
  10.  
  11.     if (id) players[0] = id; else get_players(players, count, "ch")  
  12.     {
  13.         for ( new i = 0; i < count; i++ )
  14.         {
  15.             if ( is_user_connected(players[i]) )
  16.             {
  17.                 message_begin(MSG_ONE_UNRELIABLE, SayText, _, players[i])
  18.                 write_byte(players[i]);
  19.                 write_string(msg);
  20.                 message_end();
  21.             }
  22.         }
  23.     }
  24. }


  1. public kornekvegevan(id)
  2. {
  3.     new SMS
  4.     SMS += random_num(0, 50); // 0 - 50 ig megy a random most
  5.     Erteke[id] += SMS;
  6.    
  7.     new snev[32]
  8.     get_user_name(id, snev, 31)
  9.    
  10.     print_color(0, "!g(RANDOM DROP)!t %d !ykapott !g%d!y SMS pontot!", snev,SMS)
  11. }
  12. stock print_color(const id, const input[], any:...) ///Probléma itt van
  13. {
  14.     new count = 1, players[32]
  15.     static msg[2048]
  16.     vformat(msg, 2047, input, 3)
  17.    
  18.     replace_all(msg, 190, "!g", "^4")
  19.     replace_all(msg, 190, "!y", "^1")
  20.     replace_all(msg, 190, "!t", "^3")
  21.    
  22.    
  23.     if (id) players[0] = id; else get_players(players, count, "ch")
  24.     {
  25.     for (new i = 0; i < count; i++)
  26.     {
  27.         if (is_user_connected(players[i]))
  28.         {
  29.             message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  30.             write_byte(players[i])
  31.             write_string(msg)
  32.             message_end()
  33.         }
  34.     }
  35. }
  36.     return PLUGIN_HANDLED
  37. }

Oldal: 1 / 1 Minden időpont UTC+01:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/