• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Error

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
If you are using a Non-English localized operating system then there is a chance it is being caused by incorrect numeric delimiters.

For example in German the number "10000.25" would be "10000,25".

The problem is the JASS script is only designed for English localization. The automatic statements generated by GUI for units and map initialization calls will use your system localization for the real numbers. The JASS compiler then interprets these as two separate parameters so throws an invalid number of parameters error.

The solution is to change your delimiter in...
Control Pannel -> Region -> Additional Settings...

This error started with one of the patches. Blizzard must have unintentionally linked in a localized output producing function (eg some versions of printf) when the output for the script should never be localized (since JASS only supports US localization).
 
Status
Not open for further replies.
Top