Multiple problems [y_iter + ColAndreas]
#1

Hello, I've 2 problems:

1) Isn't impossible to use CA_ContactTest from Colandreas with this object? It's returning 0 everytime (when the object in under/top/on the ground).

2) I've a problem with y_iterate. I can't add an element for a specific value. Only for the factionid 1, it's working.
PHP код:
    Iter_Add(f_OwnedWeapons<factionid>, weaponid);
    
printf("Iter_Add - Weaponid : %i added"weaponid);
    if(!
Iter_Contains(f_OwnedWeapons<factionid>, weaponid))
        
printf("Iter_Contains - Weaponid : %i doesn't added!!"weaponid);
    else
        
printf("All is good for weapon %i"weaponid); 
Код:
[12:13:21] Iter_Add - Weaponid : 43 added
[12:13:21] Iter_Contains - Weaponid : 43 doesn't added!!
[12:13:21] INFO [core/faction/save] : [42] Weapon Camera (43) with 5 ammos for faction United States Army (5)
[12:13:24] Iter_Add - Weaponid : 45 added
[12:13:24] All is good for weapon 45
[12:13:24] INFO [core/faction/save] : [43] Weapon Infrared (45) with 5 ammos for faction United States Army (5)
Reply


Messages In This Thread
Multiple problems [y_iter + ColAndreas] - by Dayrion - 30.06.2017, 10:24
Re: Multiple problems [y_iter + ColAndreas] - by Vince - 30.06.2017, 11:31
Re: Multiple problems [y_iter + ColAndreas] - by Dayrion - 30.06.2017, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)