• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] "Variable length is uninitalized"

Status
Not open for further replies.
Level 2
Joined
Nov 29, 2021
Messages
8
Why is this happening and how to fix it?
 

Attachments

  • Bug+.PNG
    Bug+.PNG
    31.4 KB · Views: 31

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
539
Why is this happening and how to fix it?
pjass unfortunately displays the error on the wrong line. It's the line set length = length + 1. You didn't assign any previous value to it and reading an uninitialized variable would abort the execution.
 
Status
Not open for further replies.
Top