Jump to content
  • 0

missing curlys


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

 

-    script    Welcome#newbie    -1,{
OnPCLoginEvent:
if ( #newaccount==0 ){
mes " welcome to "Onslaught Ragnarok Online"";
set #newaccount,1;
next;
announce "Server :Hello "+ strcharinfo(0) +"..."! Welcome to ( OnsRO )"",0;
end;
}
 

 

 

[Error]: Missing 1 right curlys at file 'npc/maureen/welcome.txt', line '9'

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


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

Both Capuche and Euphy has give you the solution to your error..

-	script	Welcome#newbie	-1,{
OnPCLoginEvent:
if( #newaccount==0 ){
	mes " welcome to \"Onslaught Ragnarok Online\".";
	set #newaccount,1;
	close2;
	announce "Server :Hello "+ strcharinfo(0) +"...! Welcome to ( OnsRO )",0;
}
end;
} 
Edited by Emistry
changed "next" to "close2"
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

That means you're missing 1 right curly at line 9. /sigh

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Comment : you need a \ before " in a text

mes " welcome to "Onslaught Ragnarok Online"";

=>

mes " welcome to \"Onslaught Ragnarok Online\"";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

That means you're missing 1 right curly at line 9. /sigh

i dont get it please show it to me. im noob. with scripting

 

 

Comment : you need a \ before " in a text

mes " welcome to "Onslaught Ragnarok Online"";

=>

mes " welcome to \"Onslaught Ragnarok Online\"";

it didnt work. still say the error

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

This is a right curly: }

This is line 9:

}
Your error:

Missing 1 right curlys at file 'npc/maureen/welcome.txt', line '9'

Solution: Add a right curly to line 9.

I'd highly suggest reading the Basic_Scripting article.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

-	script	Welcome#newbie	-1,{
OnPCLoginEvent:
if ( #newaccount==0 ){
mes " welcome to "Onslaught Ragnarok Online"";
set #newaccount,1;
next;
announce "Server :Hello "+ strcharinfo(0) +"..."! Welcome to ( OnsRO )"",0;
end;
}
}

new error

 


[Error]:
script error on npc/maureen/welcome.txt line 4
    parse_line: need ';'
     1 : {
     2 : OnPCLoginEvent:
     3 : if ( #newaccount==0 ){
*    4 : mes " welcome to "'O'nslaught Ragnarok Online"";
     5 : set #newaccount,1;
     6 : next;
     7 : announce "Server :Hello "+ strcharinfo(0) +"..."! Welcome to ( OnsRO )"                 ",0;
     8 : end;
     9 : }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

try it :

 

-	script	Welcome#newbie	-1,{
OnPCLoginEvent:
	if ( #newaccount==0 ){
	mes " welcome to "Onslaught Ragnarok Online"";
	set #newaccount,1;
	next;
	announce "Server :Hello "+ strcharinfo ( 0 ) +". Welcome to ( OnsRO )";
	end;
}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

thanks

 

Both Capuche and Euphy has give you the solution to your error..

-	script	Welcome#newbie	-1,{
OnPCLoginEvent:
if( #newaccount==0 ){
	mes " welcome to \"Onslaught Ragnarok Online\".";
	set #newaccount,1;
	next;
	announce "Server :Hello "+ strcharinfo(0) +"...! Welcome to ( OnsRO )",0;
}
end;
} 

thnx worked@!

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