ID:139418
 
Code:
winset(src,"information_hub.oocname_stat","text=[src.oocname]")


interface.dm:1:error: src: duplicate definition
interface.dm:1:error: "information_hub.oocname_stat": duplicate definition
interface.dm:1:error: src.oocname: value not allowed here
interface.dm:1:error: : empty type name (indentation error?)
interface.dm:1:error: text"text=[]": value not allowed here
interface.dm:1:error: : duplicate definition


Problem description: Alright so basically I have a skin. and on that skin I am using a lable to display basic player information such as their OOC name and there IC name.

And issue I seem o be having at this point is actually getting it to work. The windows ID name is information_hub and the control id name is oocname_stat. I asked another programmer and he helped me thus far, but neither of us could understand why we are getting these errors. Help please?


Could you show the code around said winset, please?
In response to Emasym
That's it. It is in its own separate code file. and that was the very first thing in it.
In response to Moussiffer
Yeah, there's your problem. winset is a proc like any other, to be used like any other proc.

For example;

mob/Login()
..()
winset(src,"information_hub.oocname_stat","text=[src.oocname]")


It's even show quite clearly in the direct reference.
In response to Emasym
Well that took care of the errors. However. When running the game, it doesn't actually show the OOC name.
In response to Moussiffer
That's something you'll have to figure. Double-checking every name, capital letters, ...

Now you're setting window "information_hub"'s element "oocname_stat" text parameter to src.oocname.
In response to Emasym
Well, I've checked all the names, and worked around with it for a while and I also had a friend try and help me out a bit and it still is not working.