Home AMX User Forum NetLinx Studio

Compiled problem

udiudi Posts: 107
I have a problem with my program (file is added),
when I am doing a building file he gives me an error but I don’t know what is the problem with the project.
I think the problem is in the main.axs file in the DEFINE_EVENT section, when I am changing the order of the include files in the DEFINE_EVENT he gives me different error in the include handler file but i don't andestand what is the problem in the code . Is there any order to set the include files??
What can be the problem????
Thanks for any help

Comments

  • viningvining Posts: 4,368
    udi wrote: »
    I have a problem with my program (file is added),
    when I am doing a building file he gives me an error but I don’t know what is the problem with the project.
    I think the problem is in the main.axs file in the DEFINE_EVENT section, when I am changing the order of the include files in the DEFINE_EVENT he gives me different error in the include handler file but i don't andestand what is the problem in the code . Is there any order to set the include files??
    What can be the problem????
    Thanks for any help

    In your Yes Handler:
    PUSH:
            {  
    	   SET_PULSE_TIME(2)
    	   STACK_VAR INTEGER index
    	   index=GET_LAST(YES_BUTTONS) 
    
    
    you can't have any code before the ariable declarations so change to:
    PUSH:
            {  
    	   
    	   STACK_VAR INTEGER index
    	   index=GET_LAST(YES_BUTTONS)
    	   SET_PULSE_TIME(2)
    
    Then in the Menu_Toilet_Handler you appear to be missing a closing curly bracket but after putting the bracket in you then get compiler errors that some function can't be found.

    So fix those 2 things and then figure out what's up with the missing functions. The toilet handler is the last include so it's not an order of including issue, maybe you changed the names.
Sign In or Register to comment.