ItsMods
Bad Syntax - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Bad Syntax (/Thread-Bad-Syntax.html)



Bad Syntax - mathieutje12 - 12-25-2010

Hey,
I got bad syntax in this script but cant find it anyone see it??
http://pastebin.com/1SSebE73
Thnx


RE: Bad Syntax - surtek - 12-25-2010

I think I found it.

PHP Code:
streakDealer() { self endon("death"); self.startscore = self.pers["kills"]; self.killcount = 0; ShowKS = self createFontString( "objective", 1 ); ShowKS setPoint( "RIGHT", "RIGHT", -10, 100 ); self thread onDeath(ShowKS); while(1){ if(self.killcount != self.pers["kills"] - self.startscore){ self.killcount = self.pers["kills"] - self.startscore; ShowKS setText( "Current Killstreak: " +self.killcount ); switch(self.killcount){ case 4: self thread dealStreak("Deagle ammo"); break; case 5: self thread dealStreak("Trowing knifes"); break; case 7: self thread dealStreak("Gold deagle"); break; case 10: self thread dealStreak("RcXD"); break; wait 0.05; } }

notice which } and { are together.

You have 4: "{"
But you have 2: "}"


RE: Bad Syntax - mathieutje12 - 12-26-2010

Tnx now it works