DEsMOn Posted October 14, 2021 Posted October 14, 2021 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 : { Quote
0 DEsMOn Posted October 16, 2021 Author Posted October 16, 2021 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) Quote
0 Emistry Posted October 16, 2021 Posted October 16, 2021 bg_create_team(....) you dont have this script command added to your server, or forgotten recompile if you have already added it. Quote
Question
DEsMOn
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 : {
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.