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 08: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,999
    /Marked as Solved

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, 06: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, 07: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, 08: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, 07:29 PM
  5. [HELP] Fast Mouse Click Code[Solved]
    By <(-_-)> in forum Visual Basic Programming
    Replies: 6
    Last Post: 04-01-2010, 08:41 PM