• 🏆 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] 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
 
Level 12
Joined
Oct 16, 2010
Messages
680
This is the whole trigger?

Cuz Local declaration after first statement means , you created a local variable not before all the statements

but here I don't see any local declaration...

EDIT: i think i found your problem in you other thread
 
Status
Not open for further replies.
Top