hlmod.hu
https://hlmod.hu/

Playerhurt HIBA
https://hlmod.hu/viewtopic.php?f=9&t=16174
Oldal: 1 / 1

Szerző:  alfaanero [ 2014.06.09. 09:19 ]
Hozzászólás témája:  Playerhurt HIBA

Hello.Valaki ki javítaná?

SMA Forráskód: [ Mindet kijelol ]
  1. public Event_CurWeapon(id)
  2. {
  3. new weapon = get_user_weapon(id)
  4. if(weapon == CSW_AK47 && g_aranyak[id] == true)
  5. {
  6. entity_set_string(id, EV_SZ_viewmodel, "models/aranyak/v_aranyak.mdl")
  7. entity_set_string(id, EV_SZ_weaponmodel, "models/aranyak/p_aranyak.mdl")
  8. }
  9. if(weapon == CSW_AK47 && g_aranyak[id] == false)
  10. {
  11. entity_set_string(id, EV_SZ_viewmodel, "models/v_ak47.mdl")
  12. entity_set_string(id, EV_SZ_weaponmodel, "models/p_ak47.mdl")
  13. }
  14. public PlayerHurt( victim,inflictor,attacker,Float:damage, DamageBits )
  15. {
  16. new weapon = get_user_weapon(attacker)
  17. if(weapon == CSW_AK47 && g_aranyak[attacker])
  18. {
  19. SetHamParamFloat(4, damage * 1.50);
  20. }
  21. }


erre hibát ír:
SMA Forráskód: [ Mindet kijelol ]
  1. public PlayerHurt( victim,inflictor,attacker,Float:damage, DamageBits )

Szerző:  xXlederXxHUN [ 2014.06.09. 09:58 ]
Hozzászólás témája:  Re: Playerhurt HIBA

lemaradt 1 } és a damagebits felesleges

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