Upvote Upvoted 0 Downvote Downvoted
This is script is crashing my game
posted in Q/A Help
1
#1
0 Frags +

alias volume volume1
alias volume1 "volume 0.1;alias volume volume2"
alias volume2 "volume 0.03;alias volume volume3"
alias volume3 "volume 0.00;alias volume volume1"

bind "uparrow" "volume"

Crashes whenever I press it, instantly to desktop. Doesn't matter what key it is bound to

alias volume volume1
alias volume1 "volume 0.1;alias volume volume2"
alias volume2 "volume 0.03;alias volume volume3"
alias volume3 "volume 0.00;alias volume volume1"

bind "uparrow" "volume"

Crashes whenever I press it, instantly to desktop. Doesn't matter what key it is bound to
2
#2
0 Frags +

This works fine for me.

//Sound Volume 
bind "KP_UPARROW" "incrementvar volume 0 0.3 +0.015"
bind "KP_DOWNARROW" "incrementvar volume 0 0.01 -0.015"
This works fine for me.

[code]//Sound Volume
bind "KP_UPARROW" "incrementvar volume 0 0.3 +0.015"
bind "KP_DOWNARROW" "incrementvar volume 0 0.01 -0.015"[/code]
3
#3
5 Frags +

You can't have an alias named the same thing as the actual command.

alias vol volume1
alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"

bind "uparrow" "vol"

This should work, but I don't have access to a computer to try it out.

You can't have an alias named the same thing as the actual command.

[code]alias vol volume1
alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"

bind "uparrow" "vol"[/code]

This should work, but I don't have access to a computer to try it out.
4
#4
-3 Frags +
ThoxoYou can't have an alias named the same thing as the actual command.
alias vol volume1
alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"

bind "uparrow" "vol"

This should work, but I don't have access to a computer to try it out.

still crashes ty though

[quote=Thoxo]You can't have an alias named the same thing as the actual command.

[code]alias vol volume1
alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"

bind "uparrow" "vol"[/code]

This should work, but I don't have access to a computer to try it out.[/quote]

still crashes ty though
5
#5
0 Frags +

Move "alias vol volume1" below the other alias definitions, like so:

alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"
alias vol volume1

bind "uparrow" "vol"

Not really sure why this happens. My best guess is because volume1 isn't defined as an alias until later in the script.

Move "alias vol volume1" below the other alias definitions, like so:

[code]
alias volume1 "volume 0.1;alias vol volume2"
alias volume2 "volume 0.03;alias vol volume3"
alias volume3 "volume 0.00;alias vol volume1"
alias vol volume1

bind "uparrow" "vol"[/code]

Not really sure why this happens. My best guess is because volume1 isn't defined as an alias until later in the script.
6
#6
-1 Frags +

.

.
Please sign in through STEAM to post a comment.