Jump to content
Sign in to follow this  
Snardman

Weapons/ammo error

Recommended Posts

I get this error when i add a code similiar to this into an ammo box or unit(in init field of course)

This addWeaponCargo ["Glock", 10],

This addMagazineCargo ["GlockMag", 40],

and i get this error

Missing (

essentally it wants a ( at every , in the code... showed up with the newest patch.. pls help?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">This addWeaponCargo ["Glock", 10],

This addMagazineCargo ["GlockMag", 40],

<span id='postcolor'>

THe commas should be semicolons(;).

Share this post


Link to post
Share on other sites

Yes, so it should be:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

this addMagazineCargo ["GlockMag", 40];this addWeaponCargo ["Glock", 10];

<span id='postcolor'>

Share this post


Link to post
Share on other sites

I think that classifies it as a string, and it wants you to put another bracket at the end... heh smile.gif

I don't know though.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×