Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/18/18 in all areas

  1. 1 point
    meko

    Help me understand What is getarg(0)

    function foobar { .@first_argument$ = getarg(0); // get the value of the first argument passed to foobar() .@output$ = "Hello " + .@first_argument$; // add the value of the first argument to "Hello" return .@output$; // exit the function, while returning the value of .@output$ } mes(foobar("world")); // Hello World
  2. 1 point
    meko

    SCRIPT ERROR (MULTI CURRENCY SHOP)

    .@num$ = .@num % (10 ** (.@i + 1)) / (10 ** .@i) + .@num$; // x = (y mod (10 ** (z + 1)) / (10 ** z)) // x = y mod 10 // this means it can be simplified to: .@num$ = (.@num % 10) + .@num$; but I believe your original script had an error because it uses both .@num and .@num$
  3. 1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.