Jump to content

Alternative to nested if statements?!


irswat

Recommended Posts

ScriptName SpawnTowerSniper01

int respawn=0

Begin GameMode

If GSSniper01.GetDead
    If ((SniperModQuest01.Sniper01DOD+GameDay<=30)&&(GameDay-SniperModQuest01.Sniper01DOD>=3))
        Set respawn to 1
    else if ((SniperModQuest01.Sniper01DOD+GameDay<=30)&&((30-SniperModQuest01.Sniper01DOD)+GameDay>=3)
        Set respawn to 1
    endif
endif
    
    If respawn==1
        GSSniperMarker01.PlaceAtMe SMSniper01 1
    endif
    
End

 

error: nested if statements not allowed?! What can I do?

Edited by irswat
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...