Jump to content
freakinfuzzball

LASiren.script Help

Recommended Posts

Hello again, I'm trying to figure out errors I'm getting with the siren script.  As you'll see in the script file attached, I've added 2 prototypes to the script: NHSPCHARGER and NHSPTAHOE.  The first, NHSPCHARGER worked perfectly, no problems in game what so ever.  The NHSPTAHOE gives me an error every time.  I've double checked all the directories, they're all correct, names are correct, are there too many vehicles per siren? The error tells me to look at line 162,  I don't see what the issue is.   I've included the script and the pictures of the errors, in order if you press retry.

Thanks

1.PNG

2.PNG

3.PNG

4.PNG

LASiren.script

Link to comment
Share on other sites

1 hour ago, itchboy said:

The condition for it is too long. StrCompare only allows I believe up to 12 at most. You will need to split it into another condition like this.

THANK YOU!  Your advice is a serious asset to this community, it is greatly appreciated!

EDIT:  Now I'm getting a "parenthesis does not match" error on line 256......... I thought I had this fixed!

Sorry to bug you but here's the file again after the edits.  Theres only a "}" on that line I don't understand what the issue is, I've even looked at other scripts as reference and it looks the same.

LASiren.script

LASiren.script

Edited by freakinfuzzball
Link to comment
Share on other sites

5 hours ago, itchboy said:

The condition for it is too long. StrCompare only allows I believe up to 12 at most. You will need to split it into another condition like this.

 

 

Now I'm getting a "parenthesis does not match" error on line 256......... I thought I had this fixed!

Sorry to bug you but here's the file again after the edits.  Theres only a "}" on that line I don't understand what the issue is, I've even looked at other scripts as reference and it looks the same.

EDIT: Fixed it!

LASiren.script

LASiren.script

Edited by freakinfuzzball
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...