• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[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: 32

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
544
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