Problem with amxx version change.
Hello, I have a certain code and it worked on amxx 1.8.3 unfortunately for many reasons I was forced to change the amxx to version 1.9.
[HAMSANDWICH] Wrong data type (data is of type entity) L 11/10/2019 - 09:05:08: [AMXX] Displaying debug trace (plugin "jbxtreme_wishes.amxx", version "1.00a") L 11/10/2019 - 09:05:08: [AMXX] Run time error 10: native error (native "SetHamParamFloat") L 11/10/2019 - 09:05:08: [AMXX] [0] jbxtreme_wishes.sma::vTracerAttack (line 992) L 11/10/2019 - 09:05:08: [AMXX] [1] jbxtreme_wishes.sma::TraceAttack (line 939) line 992: SetHamParamFloat(4, 999.0); line 939: return vTracerAttack(id, attacker, -1); Code:
public TakeDamage(id, ent, attacker, Float:damage, damagebits) |
Re: Problem with amxx version change.
At
Code:
you have set the second parameter of Code:
as attacker id or entity id aka a player id. It expects a float value, not id of entity. PS: Ignore my post... Now that I've read what I've written last night... I apologize. It has nothing to do with it. Probably Natseh is right. |
Re: Problem with amxx version change.
Use only SetHamParam... inside the callback function
|
| All times are GMT -4. The time now is 02:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.