zeeky111
2011-02-09 18:18:59
I'm probably going to be feeling dumb for a week after this.
I'm attempting to use the function
function R_WithdrawItem(TheVar: Variant, Amount: Integer)
In the parameters, what does the variant represent, and how do I use this function in my script?
Gu3st...
2011-02-09 18:23:07
Simplified said, a Variant is an integer, extended, boolean and string all at the same time.
A Variant can either be a string, integer, extended or a boolean (+ byte, char, int64 and whatnot, but that's of none importance atm)
When a function requires a variant, it's usually a string or an integer. In your case it looks like it would accept an ID or a name of the item.
Try with the name of the item first, then the ID if that doesn't work.
zeeky111
2011-02-09 18:55:02
Thanks. :].
I searched the forums for some form of variant help, and couldn't find any.
Got it, it works for now. Thanks, Zyt3x.
Nava2
2011-02-09 20:18:00
Perhaps reading the documentation in the code too would be nice. :)
mormonman
2011-02-09 20:28:46
From: Nava2
Perhaps reading the documentation in the code too would be nice. :)
Uh…I didn't document that part :cartman:
zeeky111
2011-02-09 20:58:32
I looked through the code and didn't once find the definition of a variant. :P.
Nava2
2011-02-10 02:23:28
From: zeeky111
I looked through the code and didn't once find the definition of a variant. :P.
Nah, that would not be in there. But what to pass as a parameter should be.. mormonman ;)