Jump to content
  • 0

Unexpected new line at string :


crazyarashi

Question


  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

verus04,81,113,0	script	Machine#machine		10007,{
	if ((checkquest(13184) == 1) || (checkquest(13184) == 0)) {
		set .@charleston_time,checkquest(13185,PLAYTIME); //20 Hours
			if (.@charleston_time == 2) {
				erasequest 13185;
				end;
			}
			else  if ((.@charleston_time == 1) || (.@charleston_time == 0)) {
				mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access.^000000"";
				close; <------- Line Error Shows Here
			}
			else if (.@charleston_time == -1) {
				set .@party_id,getcharid(1);
				set .@p_name$,getpartyname(.@party_id);
				set .@md_name$,"Charleston Crisis";
				
				if (!instance_check_party(.@party_id,1)) {
					mes "^ff0000You first must form/join a party of at least 1 person to enter this dungeon.^000000";
					close;
				}
				if (getcharid(0) == getpartyleader(.@party_id,2))
					set .@menu$, "Prepare a dimensional portal.:Charleson Factory Entry.:Cancel";
				else
				set .@menu$, ":Charleston Factory Entry.:Cancel.";
				switch(select(.@menu$)) 
				{
				case 1:
					if (instance_create(.@md_name$) < 0) {
						mes "Party Name: "+.@p_name$;
						mes "Party Leader: "+strcharinfo(0);
						mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
						close;
					}
					mes "^ff0000The Dimensional portal is ready to go!^000000";
					mes "^ff0000Please Wait!^000000";
					close;
				case 2:
					switch(instance_enter(.@md_name$))
					{
						case 0:
							if (getcharid(0) == getpartyleader(.@party_id,2)) {
								if(charlestonins == 0) {
									mapannounce "verus04",strcharinfo(0)+", member of the party "+.@p_name$+" entered the instance "+.@md_name$+".",bc_map,"0x00ff99";
									setquest 13185;
									specialeffect2 EF_WARP;
									//warp "1@mcd",127,282;
									end;
								} else {
									mapannounce "verus04",strcharinfo(0)+", member of the party "+.@p_name$+" entered the instance "+.@md_name$+".",bc_map,"0x00ff99";
									setquest 13185;
									set charlestonins,0;
									specialeffect2 EF_WARP;
									//warp "1@mcd",127,282;
									end;
								}
							} else {
								if(charlestonins == 0) {
									mes "[Machine]";
									mes "Dimensional Portal is Ready!";
									next;
									mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access..^000000";
									next;
									mes "^ff0000The Party Leader did not prepare a dimensional portal.^ff0000";
									mapannounce "verus04",strcharinfo(0)+", member of the party "+.@p_name$+" entered the instance "+.@md_name$+".",bc_map,"0x00ff99";
									setquest 13185;
									specialeffect2 EF_WARP;
									sleep2 1000;
									//warp "1@mcd",127,282;
									close;
								} else {
									mes "[Machine]";
									mes "Dimensional Portal is Ready!";
									set charlestonins,0;
									next;
									mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access..^000000";
									next;
									mes "^ff0000The Party Leader did not prepare a dimensional portal.^ff0000";
									mapannounce "verus04",strcharinfo(0)+", member of the party "+.@p_name$+" entered the instance "+.@md_name$+".",bc_map,"0x00ff99";
									setquest 13185;
									specialeffect2 EF_WARP;
									sleep2 1000;
									//warp "1@mcd",127,282;
									close;
								}
							}
						//custom @ official server kRO simple when click nothing happens.
						case 1:
							mes "Only the registered members can enter the instance "+.@md_name$+".";
							close;
						case 2:
							mes "The memorial dungeon "+.@md_name$+" does not exist.";
							mes "The party leader did not generate the dungeon yet.";
							close;
						case 3:
							mes "Unknown error";
							close;
					}
				case 3:
					close;	
				}
	} else {
		mes "^ff0000Dimensional Portal needs to be open from Charleston.^000000";
		close;
	}
}

Hi Good Day Rathena this is the first time i've encountered this but when I take a look at it there doesn't seem to be a mistake (Correct me if im wrong) 
it shows Unexpected new line at string i've highlighted the string where the error shows up :o

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

error here

mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access.^000000"";

it should be

mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access.^000000";

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

1 minute ago, Radian said:

error here


mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access.^000000"";

it should be


mes "^ff0000This dimensional portal cannot be accessed for 20 hours after your last access.^000000";

 

Oh God Thanks i didn't see that small thing over there! hahahha Thanks :))

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