Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/12/20 in all areas

  1. 1 point
    meko

    inarrary error (help)

    inarray() is not a script command of Hercules (see the docs in doc/script_commands.txt) and is also not included in the "Array manipulation functions" script You should either replace it with a for() loop or if you want to use Array manipulation functions you should use array_exists() like so: // with Array manipulation functions: if (!array_exists(.@unique_id, get_unique_id())) { ... } // with a for() loop: .@size = getarraysize(.@unique_id); for (.@k = 0; .@k < .@size; ++.@k) { if (.@unique_id[.@k] == get_unique_id()) { break; } ... } Keep in mind that get_unique_id() is also not part of Hercules so if you don't have a plugin that provides it or source mods (not recommended) it will not work
  2. 1 point
    meko

    Remove Infinity Loop Error

    freeloop(true); for (...) { ... } freeloop(false); basically you put the freeloop toggle around your for() loop
×
×
  • Create New...

Important Information

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