#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) Help me on a script code,please

##

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3181](#3181) by CaptainManiac  *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3181 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")* was created by *CaptainManiac*

Code:

if(ThingCount(t_wolfss,669) = 0) SetFont("dbigfont"); HudMessageBold(S:"NOOOOO.Look,Flynn,you were right,i mistaked by contracting with the devil.Please,correct my mistake.Ugh..auhh..";,0,CR_BRICK,512.0,384.0,0.5); terminate;

That part f code returns me error when compiling that says: "missing )"
I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 6 months ago [\#3182](#3182) by Blue Shadow  Replied by *Blue Shadow* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3182 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

Code:

HudMessageBold(S:"NOOOOO.[...].Ugh..auhh..";,0,CR_BRICK,512.0,384.0,0.5); ^ |

Between the semi-colon and comma there, the *type* (see [ HudMessage](http://zdoom.org/wiki/HudMessage)) should be passed there.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago - 10 years 6 months ago [\#3183](#3183) by CaptainManiac  Replied by *CaptainManiac* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3183 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 Still has the error.it shows that the error is in the condition part Code:

If(ThingCount(T_WOLFSS,669) = 0)

 Last edit: 10 years 6 months ago by CaptainManiac.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **jaeden7734**
- ![jaeden7734's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Wraith
- ![Wraith](https://www.realm667.com/media/kunena/ranks/rank_41_wraith.png)

 Less More- Posts: 15
-
-

   10 years 6 months ago [\#3184](#3184) by jaeden7734  Replied by *jaeden7734* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3184 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 If you are comparing two values, there must be 2x '=' Code:

If(ThingCount(T_WOLFSS,669) == 0) ^^

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3187](#3187) by CaptainManiac  Replied by *CaptainManiac* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3187 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 ***THANK YOU SO MUCH!***

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3189](#3189) by CaptainManiac  Replied by *CaptainManiac* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3189 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

Code:

Script 3 (void) { If (ThingCountName("Evilmarine", 669) &lt;= 0) setfont("dbigfont"); HudMessageBold(s:"Hi,i am script" ;HUDMSG_TYPEON|HUDMSG_LOG,0,CR_BRICK,512.0,384.0,0.5); }

That script is exeuted after a sequence,but the message has 2 problems:
The message does not show on the screen and it does not count actors properly.It is activated after spawning an BDv20b's EvilMarine and it shows the message in the log nor the monster is spawned or not

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 6 months ago [\#3193](#3193) by Blue Shadow  Replied by *Blue Shadow* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3193 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 If the execution of the HudMessageBold call depends on the condition, then you need to put that code between curly brackets: Code:

Script 3 (void) { If (ThingCountName("Evilmarine", 669) &lt;= 0) { setfont("dbigfont"); HudMessageBold(s:"Hi,i am script" ;HUDMSG_TYPEON|HUDMSG_LOG,0,CR_BRICK,512.0,384.0,0.5); } }

Another thing: HUDMSG_TYPEON requires additional parameters. Here is the syntax: Code:

HudMessageBold(text; HUDMSG_TYPEON, int id, int color, fixed x, fixed y, fixed holdTime, fixed typetime, fixed fadetime [, fixed alpha])

Figure out what you're missing, there.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago - 10 years 6 months ago [\#3195](#3195) by CaptainManiac  Replied by *CaptainManiac* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3195 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 i made it in curly brackets,put the missing,but still does not display on screen and does not count Code:

Script 3 (void) { If (ThingCountName("Evilmarine", 669) == 0) { setfont("dbigfont"); HudMessageBold(s:"Hi,i am script" ;HUDMSG_TYPEON|HUDMSG_LOG,0,CR_BRICK,512.0,384.0,1.0,0.5,0,255); } }

 Last edit: 10 years 6 months ago by CaptainManiac.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 6 months ago [\#3197](#3197) by MagicWazard  Replied by *MagicWazard* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3197 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

> CaptainManiac wrote: i made it in curly brackets,put the missing,but still does not display on screen and does not count
>
> Code:
>
> Script 3 (void) { If (ThingCountName("Evilmarine", 669) == 0) { setfont("dbigfont"); HudMessageBold(s:"Hi,i am script" ;HUDMSG_TYPEON|HUDMSG_LOG,0,CR_BRICK,512.0,384.0,1.0,0.5,0,255); } }

You want this to appear if a monster is present, right? Then I think you want it to say "If (ThingCountName("Evilmarine", 669) &gt;= 0)". Right now you're checking to see if the monster count is exactly zero. You probably want "greater than or equal to zero", which is what &gt;= means.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3198](#3198) by CaptainManiac  Replied by *CaptainManiac* on topic *[Help me on a script code,please](https://www.realm667.com/forum/the-workshop/600-help-me-on-a-script-code-please#3198 "That part f code returns me error when compiling that says: "missing )"

I don't see any missing closeing brackets.Can someone help me how to fix it?
I pre-thank you")*

 it is supposed to appear when the monster is dead or not present.It activates after monster spawn and it was supposed to show after death and worst-it prints oly in a console

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC82MDAtaGVscC1tZS1vbi1hLXNjcmlwdC1jb2RlLXBsZWFzZT9zdGFydD0w&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
