Results 1 to 5 of 5
  1. #1
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic

    [SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )

    CODE: My doDvars
    Code:
    doDvars {
    self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
    }
    CODE: My OnPlayerSpawned
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
                    if(self isHost())
                    {
                    for(;;)
                    {
                     self thread doDvars();
                    }
                    }
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    	}
    }
    Help?
    Last edited by Insane; 09-14-2010 at 09:37 PM.

  2. #2
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    you are using a ;;;;;;;;; after ifself is host....

  3. #3
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic
    Yeah, so whenever I am host it will give me unlimited Chopper Gunners :/

    Give me your fixed code.

  4. #4
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	for(;;)
    	{
    		self waittill("spawned_player");
                    if(self isHost())
                     {
                    while(1)
                     {
                     self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
                     }
                     }
                    
    	}
    }

  5. #5
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [Solved]Help with bad syntax
    By lior19940 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 09-27-2010, 07:11 AM
  2. [BAD Syntax] My codes Help
    By CainFool in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 08-19-2010, 08:52 AM
  3. [HELP] Bad Syntax
    By pieboy95 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 14
    Last Post: 08-06-2010, 09:00 AM
  4. Help.....! bad syntax error..
    By tjwjdqls75 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 14
    Last Post: 07-23-2010, 08:29 PM
  5. [HELP] Fast Mouse Click Code[Solved]
    By <(-_-)> in forum Visual Basic Programming
    Replies: 6
    Last Post: 04-01-2010, 09:41 PM