1. Hey! Guest! The 33rd GMC Jam will take place between May 23rd, 12:00 UTC (Friday noon) and May 27th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Details about scripts [Solved]

Discussion in 'Programming' started by Hosein_namju, Mar 3, 2019.

  1. Hosein_namju

    Hosein_namju Member

    Joined:
    Oct 23, 2018
    Posts:
    18
    How Can i Get an script address in Stack (Recursive mode) i need that address for a function call. i need to run Scripts in stack out of priority for an specific Algorithm. [Stack Is Assential]
     
    Last edited: Mar 3, 2019
  2. chamaeleon

    chamaeleon Member

    Joined:
    Jun 21, 2016
    Posts:
    826
    Scripts don't have "addresses", but they do have their ids, which is simply the name of your script without parenthesis. Store that id in any data structure you need, and call it using script_execute() along with its parameters.
     
  3. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    3,969
    I've been studying computer science for a decade, and except for buffer overflow attacks, not one algorithm I studied accesses the call stack out of order.

    Perhaps you should post what algorithm you mean and put it up for discussion. My bet is that there is an alternative that doesn't need to bend the call stack. It is all too common for novice coders to try imagining new rules to suit an uninformed design, instead of crafting an informed design to suit existing rules.
     
    DukeSoft likes this.
  4. Hosein_namju

    Hosein_namju Member

    Joined:
    Oct 23, 2018
    Posts:
    18
    Hi there, An stack In that Algorithm is Essential, and there is no specific name for that, cuz its my own algorithm, i can implement it in c++, but gml is limmited:(
     
  5. RefresherTowel

    RefresherTowel Member

    Joined:
    Jul 13, 2016
    Posts:
    1,100
    Give us more information on what it is trying to do. As Frosty said, it's likely you are overcomplicating things (also, I doubt the algorithm doesn't have a name, it's far more likely that what you are trying to do has already been tried by computer scientists before, has a name, and you simply don't know it).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice