Jump to content

Limit Scripts


McclaudEagle

Recommended Posts

The error is:

 

"Script 'L4DNVActivateAssaultRifleSCRIPT', line 13: Item 'iAmmoCount' not found for parameter Object ID. Compiled script not saved."

 

Second error:

 

"Script 'L4DNVActivateAssaultRifleSCRIPT', line 13: Syntax Error. Missing expression in set command."

 

Any ideas what needs to be done?

Link to comment
Share on other sites

This line:

 

Set iAmmoToGive to 350 - Player.GetItemCount iAmmoCount

An oversight of mine. Change iAmmoCount to L4DNVAmmoRifle. iAmmoCount is a variable of type integer, and the function needs a base object.

Edited by Ladez
Link to comment
Share on other sites

This line:

 

Set iAmmoToGive to 350 - Player.GetItemCount iAmmoCount

An oversight of mine. Change iAmmoCount to L4DNVAmmoRifle. iAmmoCount is a variable of type integer, and the function needs a base object.

 

That script works beautifully now, thanks. Works just how I want it to. :D

 

Do you think you'd be willing to help me with more scripts if possible?

 

Thanks,

 

McclaudEagle

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...