ID:264346
 
Code:
var/randompicture = 'randompicture.PNG'

winset(usr , "random1.random2" , "image=[randompicture]")


Problem description:
this line of code describes setting a specific image to a certain label.
the problem is that i have no idea how to nullify the image of the label after setting it.(XD)

ive tried this:
winset(usr , "random1.random2" , "image=[null]")

and this:
winset(usr , "random1.random2" , "image=")

hoping it will work but it didnt can someone explain me where im where wrong?


You kind of have the right idea. It should be "image=null" if I'm not mistaken, without the brackets.
In response to Mega fart cannon
tried it...didnt work
In response to Biond_coder
Mmm, looking at the skin reference, it looks like the default for "null" is actually (""), so try image="".
In response to Mega fart cannon
That doesn't really make sense; that's just a random/invalid word ("null"), and will probably be ignored. Setting the image parameter to blank should work however - perhaps the recipient or the control ID is incorrect.
Note to the OP though: Embedding the null value <small>(different from in a text string like "null" where it's like any text string of a word)</small> or an empty text string ("") is pointless and doesn't change anything - all these text strings are equivalent:
"abc"
"abc[null]"
"abc[null][""][null][""]"
In response to Mega fart cannon
_> This also actually doesn't make a difference, because the quotes are used as the deliminators and the value actually used goes inside. So "image=poo" and "image=\"poo\"" is the same, so is "image=" and "image=\"\"". You can also use single quotes which are easier to read (or the text document syntax {" "})
Anyway, winset(player,"Label","image=") should work, the OP should confirm the arguments he used are correct.
Biond_coder wrote:

Problem description:
the problem is that i have no idea how to nullify the image of the label after setting it.(XD)

I find that the way that I prefer is.
winset(src, "controlID", {"image="[null]""})


Also, as a side note
Code:
> var/randompicture = 'randompicture.PNG'
>
> winset(usr , "random1.random2" , "image=[randompicture]")
>
>


Are you defining randompicture just to be able to skin the control with the randompicture.PNG file?
In response to Kaioken
hey tried it and it worked thanks :)