Languages

Menu
Sites
Language
How to write script in the program block in .edc file?

How to write script  logic in the program block in .edc file ?​    I find a script block ,we can use

   program { name: "shown,panel,click";
            signal: "mouse,clicked,*";
            source: "message.img.emotion";
            script {
               new st[31];
               new Float:vt;
               get_state(PART:"message.pannel",st,30,vl);
               if(!strcmp(st,"default")
                emit("message,panel,state,shown,0", "");
               else
                emit("message,panel,state,hidden,0","");
               }
         }

where can I get the tutorial about how to write a scrpit  ? such as the get_state function info .

thanks

View Selected Answer

Responses

2 Replies
Mark as answer
Eugene Kurzberg

See the answer for this question.

jian chen

Thank you !