View Single Post
  #10  
Unread 11-14-2011, 04:07 PM
Equendil Equendil is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2011
Posts: 52
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.
__________________
Author of LIP, Bootstrap and Baruk

Last edited by Equendil : 11-14-2011 at 04:12 PM.
Reply With Quote