Jump to content
  • 0

Can Anyone Guide to fix this error


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

Hello Everyone...!!!

Can any one guide to fix this issue

[Error]:
script error on npc/custom/battleground/unofficial/DeathMatch.txt line 422
    script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
   417 :                                //build teams
   418 :                                set .teamCount, $maxDMMemberCount / 2;
   419 :                                //warp first char
   420 :                                announce "[Death Match] The fight begins!",bc_all,0xC3FF00;
   421 :                                set .@warped, 0;
*  422 :                                set .@redTeamId$, bg_create_team; '('$@deathMatchMap$, $warpPointRed[0], $warpPointRed[1]);
   423 :                                set .@blueTeamId$, bg_create_team; $deathMatchMap$, $warpPointBlue[0], $warpPointBlue[1]);
   424 :                                for(set .@i,0; .@i<getarraysize($@DMMembers); set .@i,.@i+1)
   425 :                                {
   426 :                                        if (attachrid($@DMMembers[.@i]) == 1)
   427 :                                        {

script error on npc/custom/battleground/unofficial/Captain.txt line 476
    parse_line: expected ';'
   471 :                                //build teams
   472 :                                set .@teamCount, $maxCMemberCount / 2;
   473 :                                //warp first char
   474 :                                announce "[Captain] The fight begins!", bc_all, 0x0000FF;
   475 :                                set .@warped, 0;
*  476 :                                set $@redTeam, bg_create_team'('$captainMap$, $warpPointRed[0], $warpPointRed[1]);
   477 :                                set $@blueTeam, bg_create_team($captainMap$, $warpPointBlue[0], $warpPointBlue[1]);
   478 :                                for(set .@i,0; .@i<getarraysize($@CMembers); set .@i,.@i+1)
   479 :                                {
   480 :                                        if (attachrid($@CMembers[.@i]) == 1)
   481 :                                        {

script error on npc/custom/battleground/unofficial/TouchDown.txt line 557
    parse_line: expected ';'
   552 :                                //build teams
   553 :                                set .teamCount, $maxTDMemberCount / 2;
   554 :                                //warp first char
   555 :                                announce "[Touch Down] The fight begins!", bc_all, 0x00FF00;
   556 :                                set .@warped, 0;
*  557 :                                set $@blueTeam, bg_create_team'('$touchdownMap$, $warpPointBlue[0], $warpPointBlue[1]);
   558 :                                set $@redTeam, bg_create_team($touchdownMap$, $warpPointRed[0], $warpPointRed[1]);
   559 :                                for(set .@i,0; .@i<getarraysize($@TDMembers); set .@i,.@i+1)
   560 :                                {
   561 :                                        if (attachrid($@TDMembers[.@i]) == 1)
   562 :                                        {

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

bg_create_team(....)

you dont have this script command added to your server, or forgotten recompile if you have already added it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   168
  • Joined:  04/05/13
  • Last Seen:  

Try remove ; after bg_create_team;

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

On 10/15/2021 at 7:42 AM, Start_ said:

Try remove ; after bg_create_team;

Did still

[Error]:
script error on npc/custom/battleground/unofficial/DeathMatch.txt line 422
    parse_line: expected ';'
   417 :                                //build teams
   418 :                                set .teamCount, $maxDMMemberCount / 2;
   419 :                                //warp first char
   420 :                                announce "[Death Match] The fight begins!",bc_all,0xC3FF00;
   421 :                                set .@warped, 0;
*  422 :                                set .@redTeamId$, bg_create_team '('$@deathMatchMap$, $warpPointRed[0], $warpPointRed[1]);
   423 :                                set .@blueTeamId$, bg_create_team; deathMatchMap$, $warpPointBlue[0], $warpPointBlue[1]);
   424 :                                for(set .@i,0; .@i<getarraysize($@DMMembers); set .@i,.@i+1)
   425 :                                {
   426 :                                        if (attachrid($@DMMembers[.@i]) == 1)
   427 :                                        {
[Info]: npc_parse_function: Overwriting user function [CheckDMTeamRedPlayer] (npc/custom/battleground/unofficial/DeathMatch.txt:478)
[Info]: npc_parse_function: Overwriting user function [CheckDMTeamBluePlayer] (npc/custom/battleground/unofficial/DeathMatch.txt:490)
[Info]: npc_parse_function: Overwriting user function [CheckDMPlayers] (npc/custom/battleground/unofficial/DeathMatch.txt:502)

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.

Guest
Answer this question...

×   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...