UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: MZslayer11 on October 01, 2014, 10:44:45 pm

Title: Yet another Script Compile Error!
Post by: MZslayer11 on October 01, 2014, 10:44:45 pm
Another Server Script Compile Error! What did i do this time?

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimg.ctrlv.in%2Fimg%2F14%2F10%2F01%2F542c823e97e23.jpg&hash=f31c29c207e5d8b7f83030da2d1a0b37dcf31d1f) (http://ctrlv.in/442903)

LINE 568 IS THE SECCOND LINE (THE FIRST BRACKET)

Code Snippet
Plaintext
turn_jugger_on()
{
machine = getentarray("vending_jugg", "targetname");

for( i = 0; i < machine.size; i++ )
{
machine[i] setmodel("zombie_vending_jugg_on");
machine[i] vibrate((0,-100,0), 0.3, 0.4, 3);
machine[i] playsound("perks_power_on");
machine[i] thread perk_fx( "jugger_light" );

}
level notify( "specialty_armorvest_power_on" );

}

Any help is appreciated!
Title: Re: Yet another Script Compile Error!
Post by: JBird632 on October 01, 2014, 10:46:51 pm
Even though its pointing to that line, its actually above that, so you likely forgot a semicolon on the previous line in the function above, or just forgot the bracket closing the function.
Title: Re: Yet another Script Compile Error!
Post by: treminaor on October 01, 2014, 11:03:17 pm
LINE 568 IS THE SECCOND LINE (THE FIRST BRACKET)
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fwww.waterwisepoolsandspas.com%2Fwp-content%2Fuploads%2F2014%2F05%2FMy_eyes.png&hash=97db17fd65d159d27fc92a68aaa6289844aa7a22)

JBrid's answer is correct.
Title: Re: Yet another Script Compile Error!
Post by: MZslayer11 on October 01, 2014, 11:15:37 pm
Fixed! Missing Bracket like 10 lines above