UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

'Uninitialized Variable' when playing sound

broken avatar :(
Created 10 years ago
by mrpeanut188
0 Members and 1 Guest are viewing this topic.
1,274 views
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 4 years ago
Posts
418
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut1881337p34nutmrpeanut188
Code Snippet
Plaintext
******* Server script compile error *******
Error: uninitialised variable 'difficulty_ramp_music': (file 'maps/ugx_jukebox.gsc', line 141)
   players[i] playsound(difficulty_ramp_music);

Alias
Code Snippet
Plaintext
name,file,platform,sequence,vol_min,vol_max,dist_min,dist_max,limit_count,limit_type,entity_limit_count,entity_limit_type,bus,volume_min_falloff_curve,volumefalloffcurve,reverb_send,dist_reverb_max,reverb_min_falloff_curve,reverb_falloff_curve,pitch_min,pitch_max,randomize_type,spatialized,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,chainaliasname,startdelay,speakermap,lfe percentage,center percentage,envelop_min,envelop_max,envelop percentage,occlusion_level,occlusion_wet_dry,real_delay,distance_lpf,move_type,move_time,min_priority,max_priority,min_priority_threshold,max_priority_threshold,,isbig
difficulty_ramp_music,ugx_mod/music/jukebox/difficulty_ramp.wav,,,1,0.9,500,4000,3,reject,,,music,,curve4,1,4500,,curve2,1,1,,2d,,,,,,,,,,,wpn_all,,,,,,0.25,,,,,,100,100,0.25,1,,

The other sounds in the alias work fine, no problems. The alias is also the one from UGX Jukebox, except with the obvious file and name change.
Marked as best answer by mrpeanut188 10 years ago
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
You need to make the sound that you want to play a string.

like this:
Code Snippet
Plaintext
players[i] playsound("difficulty_ramp_music");
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 4 years ago
Posts
418
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut1881337p34nutmrpeanut188
Oh thanks. Goddamn I'm a retard, but I'll forgive myself seeing as it was at 2am.

 
Loading ...