kuwalda Posted June 8, 2014 Share Posted June 8, 2014 Could you please tell me why these things don`t work for me: setElementData( localPlayer, "meetingpoint", createMarker( _G[""..getElementData( localPlayer, "raceParticipate" )..""][1][1], _G[""..getElementData( localPlayer, "raceParticipate" )..""][1][2], _G[""..getElementData( localPlayer, "raceParticipate" )..""][1][3], "checkpoint", 6, 116, 237, 5, 90 )) setMarkerIcon(getElementData(localplayer, "meetingpoint"), "finish" ) Marker is being created, but "finish" icon is not set deletothis = getElementData(thePlayer, "meetingpoint") destroyElement(deletothis) And later on, why does this is not deleting that marker? As I would have to guess, there is some kinda problem with getElementData Link to comment
Den. Posted June 8, 2014 Share Posted June 8, 2014 getElementData works perfectly, you're just using it incorrectly. Line 3: You had localplayer instead of localPlayer setMarkerIcon(getElementData(localPlayer, "meetingpoint"), "finish") Is thePlayer variable used in the second snippet defined? Also, check debug ( /debugscript 3 ) for warnings/errors and other info. 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