Quote:
Originally Posted by WildCard65
Actually, I find that a bit derpy on how it works(like you need to use setnumattributes to 1 higher then one you going to assign to(ex: 5, you use setnums 6):
(Following link is for a problem of mine, but also portrays derpyness of setnumattributes if you look at it closely): https://forums.alliedmods.net/showthread.php?t=232654
|
It works just like arrays.
Gives you 5 "slots" to use, numbered: 0, 1, 2, 3, and 4.
PHP Code:
TF2Items_SetNumAttributes(handle, 5);
Gives you 5 "slots" to use, numbered: 0, 1, 2, 3, and 4.
I don't see what's confusing?
__________________