ItsMods

Full Version: Bad Syntax
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
I got bad syntax in this script but cant find it anyone see it??
http://pastebin.com/1SSebE73
Thnx
I think I found it.

PHP Code:
streakDealer()
{
        
self endon("death");
 
                        
self.startscore self.pers["kills"];
                        
self.killcount 0;
                        
                        
ShowKS self createFontString"objective");
                        
ShowKS setPoint"RIGHT""RIGHT", -10100 );
                        
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: "}"
Tnx now it works