Jump to content
Wkboy714

Some weird script errors. Help please

Recommended Posts

Hey,

I've taken the LA mod's siren script for my own use but when trying to load the script I get about ten script errors. All I've changed is the prototypes of the vehicles and the parameters random number generation, the rest of the script is identical to LA mod's default script but it's freaking out and I'm not sure why.

 

It advises that I may need to use a +P or -p option but to be honest I have no idea what that means. Even more confusing is that some script errors repeat themselves and the line it refers to in question seems to be identical to the original script. Also, what the hell does the error message about "this definitely is an evil workaround" mean?!

 

I've been trying for days but I'm stuck so I'd appreciate help here please :)

 

Attached the script, and click below to see the error messages.

 

(_Sirenscb4c3): Error: Unexpected EOF G_fignostream():3

 

(_Sirenscb4c3): FILE:mod:/scripts/game/command/Sirens.SCRIPTcb4c3

Line:613

 

(_Sirenscb4c3): Advice: You may need to use the +P or -p option.

 

(_Sirenscb4c3): Error: Parenthesis do not match

 

(_Sirenscb4c3): FILE:mod:/scripts/game/command/Sirens.SCRIPTcb4c3

Line:613

 

(_Sirenscb4c3): Error: Unexpected EOF G_fignostream():3

 

(_Sirenscb4c3): FILE:mod:/scripts/game/command/Sirens.SCRIPTcb4c3

Line:613

 

(_Sirenscb4c3): Advice: You may need to use the +P or -p option.

 

(_Sirenscb4c3): Error: Symbol this_definitely_is_an_evil_workaround_2964_4d00 is not defined in current scope

 

(_Sirenscb4c3): FILE: LINE:0

sirens.txt

Link to comment
Share on other sites

When you copy lines with paths to prototypes selection may chose " too and you might get it deleted, try again with caution. Oh i have missed that you have added a script in attachments



As i see you got ...== 0 in the last StrCompare when it has to be == 0)
Example not right:
			}			int soundID;			Vector CarPos = v.GetPosition(); 			if (StrCompare(v.GetPrototypeFileName(), PROTO_DPL01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_DPL02) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_FRU1) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_IRU01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_USAR01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_DLK) == 0 			{

Examlpe Right:

			}			int soundID;			Vector CarPos = v.GetPosition(); 			if (StrCompare(v.GetPrototypeFileName(), PROTO_DPL01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_DPL02) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_FRU1) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_IRU01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_USAR01) == 0 || 			StrCompare(v.GetPrototypeFileName(), PROTO_DLK) == 0) 			{
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...