Jump to content
  • 0

Help me with pvp warper error


Question

Posted (edited)

35n0dxe.jpg

 

prontera,155,181,5	script	Sample	757,{
setarray .@Map$[0],"pvp_y_1-1","pvp_y_1-2";

mes "Select your room";
set .@i,select("Room 1 ["+getmapusers(.@Map$[0])+"/50]:Room 2 ["+getmapusers(.@Map$[1]+"]"/50)) - 1;
if( getmapusers( .@Map$[.@i] ) >= "50" ){
	mes "Sorry, room Full.";
	close;
}else
	warp .Map$[.@i],0,0;
end;

OnPCKillEvent:
for( set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1 )
	if( strcharinfo(3) == .@Map$[.@i] ) {
  		announce "["+strcharinfo(0)+"] has killed ["+rid2name(killedrid)+"] in "+strcharinfo(3),0; break; }
	}
end;
}

This is my script

Edited by gyroguevarra

3 answers to this question

Recommended Posts

Posted

Change this line:

set .@i,select("Room 1 ["+getmapusers(.@Map$[0])+"/50]:Room 2 ["+getmapusers(.@Map$[1]+"]"/50)) - 1;

To this:

set .@i,select("Room 1 ["+getmapusers(.@Map$[0])+"/50]:Room 2 ["+getmapusers(.@Map$[1])+"/50]") - 1;

Also, you don't need to use set anymore to define variables.

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...