Answered Please Help me with a slide

Bossnagev420

Well-Known Member
Messages
156
Points
238
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
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,305
Points
548
Code:
self getPlayerAngles()
You were missing the () lol.
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,305
Points
548
still says that i have a bad syntex around that line
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;
    }
}
 

Bossnagev420

Well-Known Member
Messages
156
Points
238
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;
    }
}
ok thank you i dont get a bad syntex but when i mele that slide nothing happens
 

Top