gyroguevarra Posted November 14, 2013 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 107 Reputation: 1 Joined: 09/17/13 Last Seen: October 26, 2014 Share Posted November 14, 2013 (edited) 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 November 14, 2013 by gyroguevarra Quote Link to comment Share on other sites More sharing options...
Akkarin Posted November 14, 2013 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share Posted November 14, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
gyroguevarra Posted November 14, 2013 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 107 Reputation: 1 Joined: 09/17/13 Last Seen: October 26, 2014 Author Share Posted November 14, 2013 Working now. Ahm. You know how to fix this Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 14, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 14, 2013 I don't see anything wrong in the picture.. Quote Link to comment Share on other sites More sharing options...
Question
gyroguevarra
This is my script
Edited by gyroguevarraLink to comment
Share on other sites
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.