Quote:
Originally Posted by Queekusme
So what you're saying is that i should save each piece seperately insted of in the same piece of information string.
|
Well, you *can't* set one variable to two values.
If you write "quickslot1SavData = type,data", what the lua runtime does is "quickslot1SavData = type", and then it discards 'data'.
See
Lua Reference Manual
Quote:
Before the assignment, the list of values is adjusted to the length of the list of variables. If there are more values than needed, the excess values are thrown away. If there are fewer values than needed, the list is extended with as many nil's as needed.
|