UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: isaacscott2005 on July 29, 2017, 06:38:35 pm

Title: Server Script Compile Error
Post by: isaacscott2005 on July 29, 2017, 06:38:35 pm
Hey, I was just trying to add a weapon made by @BluntStuffy, but it says when I load up my map 'Server Script Compile Error',  and then it says 'bad syntax'. If you could have a look at the weapon and try and work out what I have done wrong.

In zombiemode_weapons.gsc, I put:
add_zombie_weapon( "iw7_proteus_zombie",               &"ZOMBIE_WEAPON_IW7_PROTEUS_S_750",         750      "vox_ppsh",      5);
add_zombie_weapon( "iw7_proteus_zombie_upgraded",         &"ZOMBIE_WEAPON_IW7_PROTEUS_S_B_750         750      "vox_ppsh",      5);


(these are in the 'scoped' section)
Any ideas what I should fix? Thanks
Title: Re: Server Script Compile Error
Post by: death_reaper0 on July 30, 2017, 12:06:10 am
add_zombie_weapon( "iw7_proteus_zombie",               &"ZOMBIE_WEAPON_IW7_PROTEUS_S_750",         750      "vox_ppsh",      5);
add_zombie_weapon( "iw7_proteus_zombie_upgraded",         &"ZOMBIE_WEAPON_IW7_PROTEUS_S_B_750         750      "vox_ppsh",      5);

should be

add_zombie_weapon( "iw7_proteus_zombie",               &"ZOMBIE_WEAPON_IW7_PROTEUS_S_750",         750      "vox_ppsh",      5);
add_zombie_weapon( "iw7_proteus_zombie_upgraded",         &"ZOMBIE_WEAPON_IW7_PROTEUS_S_B_750",        750      "vox_ppsh",      5);
(you forgot the ", at the end of the second string on the second line)
Title: Re: Server Script Compile Error
Post by: isaacscott2005 on July 30, 2017, 10:38:49 am
It's still not working for some reason.....any ideas?
Title: Re: Server Script Compile Error
Post by: death_reaper0 on July 30, 2017, 02:34:36 pm
also missing a comma after the 750