• 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.

[JASS] Quick JASS error fix! +2 rep to helpers!

Status
Not open for further replies.

Sverkerman

Hosted Project: BoW
Level 17
Joined
Feb 28, 2010
Messages
1,325
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer A) Not equal to (Player number of Player_Satyr)
        • Then - Actions
          • For each (Integer B) from 1 to 30, do (Actions)
            • Loop - Actions
              • Custom script: if GetLocalPlayer() == Player( bj_forLoopAIndex - 1 ) then
              • Set temp_point = (Center of Region_DTalents[(Integer B)])
              • Floating Text - Create floating text that reads 0/3 at temp_point with Z offset 0.00, using font size Real_TextSize, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
              • Hashtable - Save Handle Of(Last created floating text) as (Integer A) of (Integer B) in Hastable_FloatingText
              • Custom script: call DestroyForce(udg_temp_PlayerGroup)
              • Custom script: call RemoveLocation(udg_temp_point)
              • Custom script: endif
        • Else - Actions
I get the error "Local declaration after first statement"
What am I doing wrong? ;P
 
Status
Not open for further replies.
Top