Jump to content

setElementData


Buffalo

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...