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

Server Script Compile Error

broken avatar :(
Created 7 years ago
by isaacscott2005
0 Members and 1 Guest are viewing this topic.
2,076 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 28 March 2016
Last active: 6 years 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: 3 years 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 :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
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: 6 years 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: 3 years 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

 
Loading ...