Server Script Compile Error

broken avatar :(
Created 749 days ago
by isaacscott2005
0 Members and 1 Guest are viewing this topic.
1,166 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 28 March 2016
Last active: 440 days ago
Posts
26
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
isaacscott2005's Contact & Social Linksisaac935
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
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 32 days ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) [You are not allowed to view external links. Register or Login to see them]
discord server:
[You are not allowed to view external links. Register or Login to see them]
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
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)
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 28 March 2016
Last active: 440 days ago
Posts
26
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
isaacscott2005's Contact & Social Linksisaac935
It's still not working for some reason.....any ideas?
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 32 days ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
also missing a comma after the 750

 

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 Twitch
Loading ...