Answered Please Help me with a slide

Discussion in 'Call of Duty: Black Ops 2 Answered Questions' started by Bossnagev420, Apr 8, 2018.

  1. Bossnagev420

    Bossnagev420 Active Member

    73
    21
    18
    Credits:
    387
    Hey ppl so im making a copy paste menu for me and a friend and i wanted to add a slide and when i want to inject it in my game it says that i have a bad syntax at line 1837 would be awsome if somebody could help me Unbenannt.PNG
     
  2. candy

    candy G59 Terrorist Donator

    1,193
    780
    398
    Credits:
    6,434
    Code:
    self getPlayerAngles()
    You were missing the () lol.
     
  3. Bossnagev420

    Bossnagev420 Active Member

    73
    21
    18
    Credits:
    387
    like this?sorry im not experienced on this stuff just started today :smile: Unbenannt.PNG
     
  4. candy

    candy G59 Terrorist Donator

    1,193
    780
    398
    Credits:
    6,434
    yes.
     
  5. Bossnagev420

    Bossnagev420 Active Member

    73
    21
    18
    Credits:
    387
    still says that i have a bad syntex around that line
     
  6. candy

    candy G59 Terrorist Donator

    1,193
    780
    398
    Credits:
    6,434
    Oh, I just noticed.. Tho you did need what I gave you, you've also got
    Code:
    forward = AnglesToForward( self getPlayerAngles() )
    {
    
    which isn't going to work. This is what you should have.
    Code:
    {
        self endon("disconnect");
        level endon("game_ended");
        forward = AnglesToForward( self getPlayerAngles() );
        if(self isMeleeing() && self getCurrentWeapon() == "riotshield_mp" && !(isDefined( self.allowedtoslide )) isDefined( self.allowedtoslide ) )
        {
            i = 0;
            while( i < 15 )
            {
                self.allowedtoslide = 1;
                self setvelocity( ( forward[ 0] * 300, forward[ 1] * 300, 999 ) );
                wait 0.05;
                i++;
            }
            self.allowedtoslide = undefined;
        }
    }
     
  7. Bossnagev420

    Bossnagev420 Active Member

    73
    21
    18
    Credits:
    387
    ok thank you i dont get a bad syntex but when i mele that slide nothing happens
     
  8. candy

    candy G59 Terrorist Donator

    1,193
    780
    398
    Credits:
    6,434
    Idk man, sorry.
     
  9. Bossnagev420

    Bossnagev420 Active Member

    73
    21
    18
    Credits:
    387
    ok thank you anyways :smile:
     

Share This Page