irswat Posted February 26, 2014 Share Posted February 26, 2014 (edited) 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 February 26, 2014 by irswat Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted February 26, 2014 Share Posted February 26, 2014 It's "elseif", all one word. Link to comment Share on other sites More sharing options...
luthienanarion Posted February 26, 2014 Share Posted February 26, 2014 You can nest them 10 levels deep, though you should really code something differently if you encounter that limit. Link to comment Share on other sites More sharing options...
Recommended Posts