Jump to content
  • 0

H > Unable to restore stack! double continuation!


Johnson

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/22/18
  • Last Seen:  

Good day! I'm having trouble on this warning and dunno in what part on the script made the error. Appreciate any help. Thanks a lot!

 

Item_db_usable.yml
Spoiler
  - Id: 70000
Script: |
    callfunc("menuskills");


menuskills.txt

Spoiler
function    script  menuskills  {
OnDo:
        sc_end SC_MENUSKILLS;  
        goto(main_menu);
        end;
main_menu:
    .@menu$ = "[Skills Menu]";
    mes .@menu$;
   
    .@main_menu = select("Start Skills","Stop Skills","Cancel");
    if( .@main_menu == 1 ){
        menuskills_item;
        message strcharinfo(0),"Skill Active";
    }
    if( .@main_menu == 2 )
        goto(OnDo2);
    close;
OnDo2:
        sc_end SC_MENUSKILLS;
        message strcharinfo(0),"Skills Deactivated";
        end;
}
 

Console log:
image.png?ex=6593491d&is=6580d41d&hm=9249eac4370fceaeb64052b86dceb9b1fd7c99681c3456039a248392b2f99353&

Edited by khouuming21
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

The function starts from top of the script when called. I don't know what u want to do with this script but. U need the right syntax und commands. rA Scripts are complete different to classic programming languages and it's more a script language. U can take a look at doc/script_commands.txt and the example scripts to learn it.

I've changed it and removed unnecessary thinks. But don't understand the usage for the script. What u want to do is not clear for me.

menuskills.txt

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/22/18
  • Last Seen:  

5 hours ago, Rynbef said:

The function starts from top of the script when called. I don't know what u want to do with this script but. U need the right syntax und commands. rA Scripts are complete different to classic programming languages and it's more a script language. U can take a look at doc/script_commands.txt and the example scripts to learn it.

I've changed it and removed unnecessary thinks. But don't understand the usage for the script. What u want to do is not clear for me.

menuskills.txt 408 B · 0 downloads

 

Rynbef~

Hi Rynbef, I have managed to fix double continuation I was messing with my script and managed to fix it. Thx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...