hlmod.hu
https://hlmod.hu/

Visszaszámláló Zombie Plauge 5.0.8 alatt
https://hlmod.hu/viewtopic.php?f=10&t=6672
Oldal: 1 / 1

Szerző:  stalker [2012.11.23. 17:29 ]
Hozzászólás témája:  Visszaszámláló Zombie Plauge 5.0.8 alatt

Üdv!
Az lenne a problémám hogy az alábbi plugin valamiért kifagyasztja a szerveretet amióta Zombie Plauge 5.0.8-as mód van rajta.
Valaki megnézné és kijavítaná hogy ne rendesen működjön.
Log:
Kód:
L 11/23/2012 - 03:51:06: Start of error session.
L 11/23/2012 - 03:51:06: Info (map "zm_dust2-final_click21") (file "addons/amxmodx/logs/error_20121123.log")
L 11/23/2012 - 03:51:06: [AMXX] Displaying debug trace (plugin "numbers.amxx")
L 11/23/2012 - 03:51:06: [AMXX] Run time error 4: index out of bounds
L 11/23/2012 - 03:51:06: [AMXX]    [0] numbers.sma::zombie_countdown (line 42)

Sma:
SMA Forráskód: [ Mindet kijelol ]
  1.  #include <amxmodx>
  2. #include <amxmisc>
  3. #include <zombieplague>
  4.  
  5. #define PLUGIN "[ZP] Szamok"
  6. #define VERSION "1.0"
  7. #define Sound Sound
  8.  
  9. new countdown
  10. new time_s
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, Sound)
  14. register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
  15. }
  16.  
  17. public plugin_precache()
  18. {
  19. precache_sound( "zp_extra_countdown_hungarian/ten.wav" )
  20. precache_sound( "zp_extra_countdown_hungarian/nine.wav" )
  21. precache_sound( "zp_extra_countdown_hungarian/eight.wav" )
  22. precache_sound( "zp_extra_countdown_hungarian/seven.wav" )
  23. precache_sound( "zp_extra_countdown_hungarian/six.wav" )
  24. precache_sound( "zp_extra_countdown_hungarian/five.wav" )
  25. precache_sound( "zp_extra_countdown_hungarian/four.wav" )
  26. precache_sound( "zp_extra_countdown_hungarian/three.wav" )
  27. precache_sound( "zp_extra_countdown_hungarian/two.wav" )
  28. precache_sound( "zp_extra_countdown_hungarian/one.wav" )
  29. }
  30.  
  31. public event_round_start()
  32. {
  33. set_task(4.0, "zombie_countdown")
  34. time_s = 10
  35. countdown = 9
  36. }
  37.  
  38. public zombie_countdown()
  39. {
  40. new speak[ 10 ][] = { "zp_extra_countdown_hungarian/one.wav", "zp_extra_countdown_hungarian/two.wav", "zp_extra_countdown_hungarian/three.wav", "zp_extra_countdown_hungarian/four.wav", "zp_extra_countdown_hungarian/five.wav", "zp_extra_countdown_hungarian/six.wav", "zp_extra_countdown_hungarian/seven.wav", "zp_extra_countdown_hungarian/eight.wav", "zp_extra_countdown_hungarian/nine.wav", "zp_extra_countdown_hungarian/ten.wav" }
  41.  
  42. emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
  43. countdown--
  44.  
  45. set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
  46. show_hudmessage(0, "Fertozesig hatravan: %i masodperc!^nMenj es keress fedezeket!", time_s);
  47. --time_s;
  48.  
  49. if(time_s >= 1)
  50. {
  51. set_task(1.0, "zombie_countdown")
  52. }
  53. }
  54.  

Előre is köszönök mindent :)

Szerző:  reminder [2012.11.23. 20:45 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <zombieplague>
  4.  
  5. #define PLUGIN "[ZP] Szamok"
  6. #define VERSION "1.0"
  7. #define AUTHOR "reminder"
  8.  
  9. new countdown
  10. new time_s
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, Sound)
  14. register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
  15. }
  16.  
  17. public plugin_precache()
  18. {
  19. precache_sound( "zp_extra_countdown_hungarian/ten.wav" )
  20. precache_sound( "zp_extra_countdown_hungarian/nine.wav" )
  21. precache_sound( "zp_extra_countdown_hungarian/eight.wav" )
  22. precache_sound( "zp_extra_countdown_hungarian/seven.wav" )
  23. precache_sound( "zp_extra_countdown_hungarian/six.wav" )
  24. precache_sound( "zp_extra_countdown_hungarian/five.wav" )
  25. precache_sound( "zp_extra_countdown_hungarian/four.wav" )
  26. precache_sound( "zp_extra_countdown_hungarian/three.wav" )
  27. precache_sound( "zp_extra_countdown_hungarian/two.wav" )
  28. precache_sound( "zp_extra_countdown_hungarian/one.wav" )
  29. }
  30.  
  31. public event_round_start()
  32. {
  33. set_task(4.0, "zombie_countdown")
  34. time_s = 10
  35. countdown = 9
  36. }
  37.  
  38. public zombie_countdown()
  39. {
  40. new speak[ 10 ][] = { "zp_extra_countdown_hungarian/one.wav", "zp_extra_countdown_hungarian/two.wav", "zp_extra_countdown_hungarian/three.wav", "zp_extra_countdown_hungarian/four.wav", "zp_extra_countdown_hungarian/five.wav", "zp_extra_countdown_hungarian/six.wav", "zp_extra_countdown_hungarian/seven.wav", "zp_extra_countdown_hungarian/eight.wav", "zp_extra_countdown_hungarian/nine.wav", "zp_extra_countdown_hungarian/ten.wav" }
  41.  
  42. emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
  43. countdown--
  44.  
  45. set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
  46. show_hudmessage(0, "Fertõzésig hátravan: %i másodperc!^n Menj es keress fedezéket!", time_s);
  47. --time_s;
  48.  
  49. if(time_s >= 1)
  50. {

itt van helyesen !!!

Szerző:  fear_ezmegmi [2012.11.23. 21:38 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

reminder írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <zombieplague>
  4.  
  5. #define PLUGIN "[ZP] Szamok"
  6. #define VERSION "1.0"
  7. #define AUTHOR "reminder"
  8.  
  9. new countdown
  10. new time_s
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, Sound)
  14. register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
  15. }
  16.  
  17. public plugin_precache()
  18. {
  19. precache_sound( "zp_extra_countdown_hungarian/ten.wav" )
  20. precache_sound( "zp_extra_countdown_hungarian/nine.wav" )
  21. precache_sound( "zp_extra_countdown_hungarian/eight.wav" )
  22. precache_sound( "zp_extra_countdown_hungarian/seven.wav" )
  23. precache_sound( "zp_extra_countdown_hungarian/six.wav" )
  24. precache_sound( "zp_extra_countdown_hungarian/five.wav" )
  25. precache_sound( "zp_extra_countdown_hungarian/four.wav" )
  26. precache_sound( "zp_extra_countdown_hungarian/three.wav" )
  27. precache_sound( "zp_extra_countdown_hungarian/two.wav" )
  28. precache_sound( "zp_extra_countdown_hungarian/one.wav" )
  29. }
  30.  
  31. public event_round_start()
  32. {
  33. set_task(4.0, "zombie_countdown")
  34. time_s = 10
  35. countdown = 9
  36. }
  37.  
  38. public zombie_countdown()
  39. {
  40. new speak[ 10 ][] = { "zp_extra_countdown_hungarian/one.wav", "zp_extra_countdown_hungarian/two.wav", "zp_extra_countdown_hungarian/three.wav", "zp_extra_countdown_hungarian/four.wav", "zp_extra_countdown_hungarian/five.wav", "zp_extra_countdown_hungarian/six.wav", "zp_extra_countdown_hungarian/seven.wav", "zp_extra_countdown_hungarian/eight.wav", "zp_extra_countdown_hungarian/nine.wav", "zp_extra_countdown_hungarian/ten.wav" }
  41.  
  42. emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
  43. countdown--
  44.  
  45. set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
  46. show_hudmessage(0, "Fertõzésig hátravan: %i másodperc!^n Menj es keress fedezéket!", time_s);
  47. --time_s;
  48.  
  49. if(time_s >= 1)
  50. {

itt van helyesen !!!

attól ,hogy kiszedsz belőle 4 sort attól még nem a te pluginod....
Author -t javítsd.

Szerző:  reminder [2012.11.23. 21:49 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

jo , de ezert mi a gond? az a bajod h odairom a nevem? en javitottam ki me nem irjam oda? :) akkor javitottad volna ki te:)!

:D:D:D:D:D:D:D:D:D , s akkor is a lenyeg hogy megyen :) csak egy author- miatt nem akarok veszekedni ....

Szerző:  fear_ezmegmi [2012.11.23. 22:09 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

reminder írta:
jo , de ezert mi a gond? az a bajod h odairom a nevem? en javitottam ki me nem irjam oda? :) akkor javitottad volna ki te:)!

:D:D:D:D:D:D:D:D:D , s akkor is a lenyeg hogy megyen :) csak egy author- miatt nem akarok veszekedni ....

az nem nagy javítás ha kiszeded az utolsó 4 sort...

Szerző:  DeteCT0R [2012.11.24. 01:37 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

nemfog menni.mivel ez zp4.3-ra van.
zp5.0.8-nak kulon atkell irni(asszem)
vagy valami zp_core.inc-et kell hasznalni nemtudom mar :D;D:D:D

Szerző:  HunGamer [2012.11.24. 09:36 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

Főleg hogy hibás.. Még csak le se fog fordulni.

Szerző:  Bence98007 [2012.11.24. 11:55 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "Visszaszamlalo"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Bence98007"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_logevent("Start", 2, "1=Round_Start")
  14.  
  15. }
  16.  
  17. public plugin_precache()
  18. {
  19. precache_sound("szamlalo/10.wav")
  20. precache_sound("szamlalo/9.wav")
  21. precache_sound("szamlalo/8.wav")
  22. precache_sound("szamlalo/7.wav")
  23. precache_sound("szamlalo/6.wav")
  24. precache_sound("szamlalo/5.wav")
  25. precache_sound("szamlalo/4.wav")
  26. precache_sound("szamlalo/3.wav")
  27. precache_sound("szamlalo/2.wav")
  28. precache_sound("szamlalo/1.wav")
  29.  
  30. }
  31.  
  32. public Start()
  33. {
  34. set_task(0.1, "tiz")
  35. set_task(2.0, "kilenc")
  36. set_task(3.0, "nyolc")
  37. set_task(4.0, "het")
  38. set_task(5.0, "hat")
  39. set_task(6.0, "ot")
  40. set_task(7.0, "negy")
  41. set_task(8.0, "harom")
  42. set_task(9.0, "ketto")
  43. set_task(10.0, "egy")
  44. }
  45.  
  46. public tiz(id)
  47. {
  48. client_cmd(0, "spk sound/szamlalo/10")
  49. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  50. show_hudmessage(0, "-[ Fertozesig hatravan: 10]-")
  51. }
  52.  
  53. public kilenc(id)
  54. {
  55. client_cmd(0, "spk sound/szamlalo/9")
  56. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  57. show_hudmessage(0, "-[ Fertozesig hatravan: 9]-")
  58. }
  59.  
  60. public nyolc(id)
  61. {
  62. client_cmd(0, "spk sound/szamlalo/8")
  63. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  64. show_hudmessage(0, "-[ Fertozesig hatravan: 8]-")
  65. }
  66. public het(id)
  67. {
  68. client_cmd(0, "spk sound/szamlalo/7")
  69. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  70. show_hudmessage(0, "-[ Fertozesig hatravan: 7]-")
  71. }
  72. public hat(id)
  73. {
  74. client_cmd(0, "spk sound/szamlalo/6")
  75. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  76. show_hudmessage(0, "-[ Fertozesig hatravan: 6]-")
  77. }
  78. public ot(id)
  79. {
  80. client_cmd(0, "spk sound/szamlalo/5")
  81. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  82. show_hudmessage(0, "-[ Fertozesig hatravan: 5]-")
  83. }
  84. public negy(id)
  85. {
  86. client_cmd(0, "spk sound/szamlalo/4")
  87. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  88. show_hudmessage(0, "-[ Fertozesig hatravan: 4]-")
  89. }
  90. public harom(id)
  91. {
  92. client_cmd(0, "spk sound/szamlalo/3")
  93. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  94. show_hudmessage(0, "-[ Fertozesig hatravan: 3]-")
  95. }
  96. public ketto(id)
  97. {
  98. client_cmd(0, "spk sound/szamlalo/2")
  99. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  100. show_hudmessage(0, "-[ Fertozesig hatravan: 2]-")
  101. }
  102. public egy(id)
  103. {
  104. client_cmd(0, "spk sound/szamlalo/1")
  105. set_hudmessage(0, 0, 255, -1.0, 0.33, 1, 6.0, 1.0)
  106. show_hudmessage(0, "-[ Fertozesig hatravan: 1]-")
  107. }


Megköszönni jobb alsó sarokban

Szerző:  stalker [2012.11.24. 12:33 ]
Hozzászólás témája:  Re: Visszaszámláló Zombie Plauge 5.0.8 alatt

Kösz Bence tökéletesen működik! :)

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