Buffalo Posted March 15, 2008 Share Posted March 15, 2008 I have a annoying problem with setting element data like in text displays tutorial http://www.multitheftauto.com/tutorial5.html (Setting up dynamic displays) local myTextDisplay = textCreateDisplay () -- create a text display local myTextItem = textCreateTextItem( "", 0.7, 0.7) -- create a text item for the display textDisplayAddText ( myTextDisplay, myTextItem ) -- add it to the display so it is displayed setElementData ( source, "textItem_myTextItem", myTextItem ) -- <-- problem textDisplayAddObserver ( myTextDisplay, source ) When it tries to setelementdata it prints to console "Couldn't packetsize argument list, invalid element speciefed." , it sets it correctly, but the error.. Can it be fixed somehow, that this error wouldn't show up? Link to comment
eAi Posted March 15, 2008 Share Posted March 15, 2008 It's not really an error, it's a warning. I agree it's annoying that it appears, but there's nothing you can really do to avoid it appearing, except not using setElementData on non-element/non-primitive values. Link to comment
Buffalo Posted March 22, 2008 Author Share Posted March 22, 2008 Then its better using tables in this case.. Thanks for reply. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now