hlmod.hu
https://hlmod.hu/

nem talalja a txt filet
https://hlmod.hu/viewtopic.php?f=18&t=16148
Oldal: 1 / 2

Szerző:  parodyshelf [ 2014.06.06. 23:18 ]
Hozzászólás témája:  nem talalja a txt filet

Hello
Az a bajom,hogy ennel a pluginnal:
http://www.hlmod.hu/viewtopic.php?f=101&t=12005#
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3. #include <amxmisc>
  4.  
  5. #define PLUGIN "Vox Round Say"
  6. #define VERSION "1.2"
  7. #define AUTHOR "God@Dorin"
  8.  
  9. new rounds_elapsed;
  10. new play_sound;
  11. new chat_message;
  12. new g_maxplayers;
  13. new g_map[32]
  14. new say_text;
  15.  
  16. public plugin_init()
  17. {
  18. register_plugin(PLUGIN, VERSION, AUTHOR)
  19. register_event("HLTV", "new_round", "a", "1=0", "2=0");
  20. register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
  21. register_dictionary("round_message.txt");
  22. play_sound = register_cvar("amx_playsound","1");
  23. chat_message = register_cvar("amx_chatmessage","1");
  24. say_text = get_user_msgid("SayText");
  25. g_maxplayers = get_maxplayers();
  26. get_mapname(g_map, 31)
  27. }
  28. public new_round()
  29. {
  30. rounds_elapsed += 1;
  31.  
  32. new p_playernum;
  33. p_playernum = get_playersnum(1);
  34.  
  35. if(get_pcvar_num(chat_message) == 1)
  36. {
  37. client_printc(0, "%L", 0, "RND_MSG", rounds_elapsed, g_map, p_playernum, g_maxplayers);
  38. }
  39. if(get_pcvaHelp
  40. m(play_sound) == 1)
  41. {
  42. new rndctstr[21]
  43. num_to_word(rounds_elapsed, rndctstr, 20);
  44. client_cmd(0, "spk ^"vox/round %s^"",rndctstr)
  45. }
  46. return PLUGIN_CONTINUE;
  47. }
  48. public restart_round()
  49. {
  50. rounds_elapsed = 0;
  51. }
  52. stock client_printc(const id, const string[], {Float, Sql, Resul,_}:...) {
  53.  
  54. new msg[191], players[32], count = 1;
  55. vformat(msg, sizeof msg - 1, string, 3);
  56.  
  57. replace_all(msg,190,"!g","^4");
  58. replace_all(msg,190,"!y","^1");
  59. replace_all(msg,190,"!t","^3");
  60.  
  61. if(id)
  62. players[0] = id;
  63. else
  64. get_players(players,count,"ch");
  65.  
  66. new index;
  67. for (new i = 0 ; i < count ; i++)
  68. {
  69. index = players[i];
  70. message_begin(MSG_ONE_UNRELIABLE, say_text,_, index);
  71. write_byte(index);
  72. write_string(msg);
  73. message_end();
  74. }
  75.  
  76. }
  77. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  78. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
  79. */
  80.  

Hiaba toltom fel a data/lang ba a round_message.txt a kor elejen ir egy hibat a chatbe
Vmi notfound
Help
Tenyleg feltoltottem!!!Ilyen valaszt ne hogy:tuti jo helyre raktadl -.-"

Szerző:  Golo [ 2014.06.06. 23:58 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Próba nem volt de teszt nélkül fut, és nem kell txt fájl :)
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <colorchat>
  3.  
  4. #define PLUGIN "Kor eleji Info"
  5. #define VERSION "1.0"
  6. #define AUTHOR ""
  7.  
  8. new ujkor;
  9. new g_maxplayers;
  10. new g_map[32]
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_event("HLTV", "new_round", "a", "1=0", "2=0");
  16. register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
  17. g_maxplayers = get_maxplayers();
  18. get_mapname(g_map, 31)
  19. }
  20.  
  21. public new_round()
  22. {
  23. ujkor += 1;
  24.  
  25. new p_playernum;
  26. p_playernum = get_playersnum(1);
  27. ColorChat(0, YELLOW, "Kor: ^x04 %d ^1- Map: ^x04 %s ^1| Jatekosok: ^x04 %d^1/^x04 %d", ujkor, g_map, p_playernum, g_maxplayers);
  28. }
  29.  
  30. public restart_round()
  31. {
  32. ujkor = 0;
  33. }

Szerző:  parodyshelf [ 2014.06.07. 00:11 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Nem engedi forditani xDD
Kód:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

keek.sma(27) : error 017: undefined symbol "YELLOW"
keek.sma(27) : warning 215: expression has no effect
keek.sma(27) : warning 215: expression has no effect
keek.sma(27) : warning 215: expression has no effect
keek.sma(27) : warning 215: expression has no effect
keek.sma(27) : warning 215: expression has no effect
keek.sma(27) : error 001: expected token: ";", but found ")"
keek.sma(27) : error 029: invalid expression, assumed zero
keek.sma(27) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Could not locate output file keek.amx (compile failed).

Szerző:  xXlederXxHUN [ 2014.06.07. 05:29 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Nincs colorchat.inc-ed

Szerző:  Golo [ 2014.06.07. 10:05 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Akinek kéne és nincs meg

Szerző:  parodyshelf [ 2014.06.07. 12:15 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Akkor ezt a scripting/include ba?
Es meg azt nem ertem,hogy a fordito hogy a ...ba ismeri fel,hogy van colorchat,inc m vagy nincs???lol

Szerző:  Golo [ 2014.06.07. 12:22 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Igen oda.
Így csinálták meg a fejlesztők
Pl.
Hogyha nincs dhudmessage inced és ezt használod #include <dhudmessage> akkor ezt se fogja felismerni és nem fogja lefordítani
De szerintem az 1.8.3 verzióba alapból már benne lesz

Szerző:  parodyshelf [ 2014.06.07. 13:08 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Nekem ebbe az a durva,hogy a fordito megkeresi az ftp-t???vagy mi?
Es megkeresi az en tabomon levo ftpn hogy van e colorchat
WoW

Szerző:  parodyshelf [ 2014.06.07. 13:14 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Hat ez erdekes
Feltoltotem es még mindig nem jo :(
Legyszives ird meg:
"![*W-T-F*]!-INFO:~Korok->^x04 %d ^1- ~Pa'lya->^x04 %s ^1| ~Ja'te'kosok-> ***^x04 %d^1/^x04 %d***"
Aztan forditsd le es skypon kuld el az amxx et skype:nagy.roland180
Lehet hogy ugy hangzik mintha csicskaztatas lenne,de ez csak keres és ha megcsinalod nagyon megkoszonom
Előre is koszi

Szerző:  Golo [ 2014.06.07. 13:25 ]
Hozzászólás témája:  Re: nem talalja a txt filet

Fordítsd itt: http://amx.freakz.ro/
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <colorchat>
  3.  
  4. #define PLUGIN "Kor eleji Info"
  5. #define VERSION "1.0"
  6. #define AUTHOR ""
  7.  
  8. new ujkor;
  9. new g_maxplayers;
  10. new g_map[32]
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_event("HLTV", "new_round", "a", "1=0", "2=0");
  16. register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
  17. g_maxplayers = get_maxplayers();
  18. get_mapname(g_map, 31)
  19. }
  20.  
  21. public new_round()
  22. {
  23. ujkor += 1;
  24.  
  25. new p_playernum;
  26. p_playernum = get_playersnum(1);
  27. ColorChat(0, YELLOW, "![*W-T-F*]!-INFO:~Korok->^x04 %d ^1- ~Pa'lya->^x04 %s ^1| ~Ja'te'kosok-> ***^x04 %d^1/^x04 %d***", ujkor, g_map, p_playernum, g_maxplayers);
  28. }
  29.  
  30. public restart_round()
  31. {
  32. ujkor = 0;
  33. }

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