Can anyone fix this for me please
prontera,150,150,5 script Teleporter 1_M_YOUNGKNIGHT,{
set .n$,"[ Teleporter ]";
mes .n$;
mes "Please enter the Floor Number.";
mes "===============================";
mes "List of Active Maps";
if(query_sql ("SELECT id, name, level, status FROM npc ", .id$, .name$, .level$, .status$ )){
for (.@i = 0; .@i < getarraysize(.status$); .@i += 1) {
if ( "1" == .status$[.@i] ) {
mes ""+.name$[.@i]+"";
}
}
}
next;
input ( .mapList );
if ( .mapList = .level$ ){
goto "S"+.mapList+"";
} else if (( .level$ = .mapList ) && ( "0" == .status$ )){
mes .n$;
mes "Unable to find the Floor number. Please enter the Active Floors.";
close;
}
S1: warp"prontera",150,155; end;
S2: warp"prontera",150,155; end;
S3: warp"prontera",150,155; end;
S4: warp"prontera",150,155; end;
S5: warp"prontera",150,155; end;
}
When I try to execute this. Here is the error im getting
[Warning]: Unexpected type for argument 1. Expected label, got C_STR
[Error]: script:goto: not a label
[Debug]: Data: string value="S1"
[Debug]: Function: goto
[Debug]: Source (NPC): Teleporter at prontera (150,150)
[Debug]: Data: string value="S1"
[Debug]: Source (NPC): Teleporter at prontera (150,150)
Thanks !