hlmod.hu
https://hlmod.hu/

Runtime error
https://hlmod.hu/viewtopic.php?f=9&t=4928
Oldal: 1 / 1

Szerző:  tson_ [2012.06.27. 19:55 ]
Hozzászólás témája:  Runtime error

Kód:
  1. "cs_get_user_team")

  2. L 06/27/2012 - 19:12:20: [AMXX]    [0] 7725884.sma::adas (line 20)

  3. L 06/27/2012 - 19:14:03: [CSTRIKE] Invalid player 10

  4. L 06/27/2012 - 19:14:03: [AMXX] Displaying debug trace (plugin "hefl.amxx")

  5. L 06/27/2012 - 19:14:03: [AMXX] Run time error 10: native error (native "cs_get_user_team")

  6.  

HEFL:

Kód:
  1. #include <amxmodx>

  2. #include <hamsandwich>

  3. #include <fun>

  4. #include <cstrike>

  5.  

  6. #define TASKID 23459

  7.  

  8. public plugin_init() {

  9.         RegisterHam(Ham_Spawn,  "player", "eledes", 1)

  10. }

  11.  

  12. public eledes(id)

  13. {

  14.         set_task(184.0, "adas", id+TASKID)

  15. }

  16.  

  17. public adas(id)

  18. {

  19.         id-= TASKID

  20.         if(cs_get_user_team(id) == CS_TEAM_CT)

  21.         {

  22.                 give_item(id, "weapon_flashbang")

  23.                 give_item(id, "weapon_hegrenade")

  24.         }

  25. }

  26.  

  27.  

Szerző:  fuck604 [2012.06.27. 20:56 ]
Hozzászólás témája:  Re: Runtime error

talán meghal amire letelik a set_task vagy lecsatlakozik ezért nem találja és errort dob
Kód:
  1. if(cs_get_user_team(id) == CS_TEAM_CT && is_user_alive(id))

Szerző:  tson_ [2012.06.27. 21:01 ]
Hozzászólás témája:  Re: Runtime error

sö akkor mit kéne csinálni hova mit hogy jó legyen ? :geek:

Szerző:  fuck604 [2012.06.27. 21:03 ]
Hozzászólás témája:  Re: Runtime error

Kód:
  1. #include <amxmodx>

  2. #include <hamsandwich>

  3. #include <fun>

  4. #include <cstrike>

  5.  

  6. #define TASKID 23459

  7.  

  8. public plugin_init() {

  9.         RegisterHam(Ham_Spawn,  "player", "eledes", 1)

  10. }

  11.  

  12. public eledes(id)

  13. {

  14.         set_task(184.0, "adas", id+TASKID)

  15. }

  16.  

  17. public adas(id)

  18. {

  19.         id-= TASKID

  20.         if(cs_get_user_team(id) == CS_TEAM_CT && is_user_alive(id))

  21.         {

  22.                 give_item(id, "weapon_flashbang")

  23.                 give_item(id, "weapon_hegrenade")

  24.         }

  25. }

Szerző:  kiki [2012.06.27. 21:03 ]
Hozzászólás témája:  Re: Runtime error

Leírta, cseréld ki arra a 20.sort és nem lesz para!

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