Jump to content
  • 0

Question

Posted (edited)
//Normal




prontera,162,192,4 script Ranking Staff 803,{
cutin "hu_alex05",2;

set @nome$,"[ ^FF0000 Ranking Staff ^000000 ]";

mes @nome$;
mes "Hello "+strcharinfo(0)+".";
next;
mes @nome$;
mes "Choose your ranking list?";
next;
switch(select("- ^FFA500Rankings of PvP [TOP 10]^000000","- ^008B8BRankings of GvG [TOP 10]^000000"))
{
case 1:

mes @nome$;
mes "Okay, This is the List of PvP [TOP 10]";
next;
query_sql "SELECT name, kills, deaths FROM PVP ORDER BY kills DESC LIMIT 10",@name$,@kills,@deaths;
dispbottom "Ranking PvP [TOP 10]";
dispbottom " ";
dispbottom "Position <~> Name <~> Kill <~> Died";
dispbottom " ";
for(set @i,0;@i<=9;set @i,@i+1) {
dispbottom "["+(@i+1)+"] <~> "+@name$[@i]+" <~> "+@kills[@i]+" <~> "+@deaths[@i]+"";
}
close;

case 2:

mes @nome$;
mes "Okay, This is the List of GvG [TOP 10]";
next;
query_sql "SELECT name, kills, deaths FROM gvg ORDER BY kills DESC LIMIT 10",@guild_name$,@guild_kills,@guild_deaths;
dispbottom "Ranking GvG [TOP 10]";
dispbottom " ";
dispbottom "Position <~> Name of the Guild <~> Wins <~> Loses";
dispbottom " ";
for(set @i,0;@i<=9;set @i,@i+1) {
dispbottom "["+(@i+1)+"] <~> "+@guild_name$[@i]+" <~> "+@guild_kills[@i]+" <~> "+@guild_deaths[@i]+"";
}
close;
cutin "",255;

}
}
}
}


===============================

can you help me where to put the cutin "",255; -- bcoz its not working after choosing case1 & 2.. help please

Edited by Emistry
codebox

2 answers to this question

Recommended Posts

Posted

try this

 

prontera,162,192,4 script Ranking Staff 803,{
cutin "hu_alex05",2;
 
 
set @nome$,"[ ^FF0000 Ranking Staff ^000000 ]";
 
    mes @nome$;
    mes "Hello "+strcharinfo(0)+".";
    next;
    mes @nome$;
    mes "Choose your ranking list?";
    next;
    switch(select("- ^FFA500Rankings of PvP [TOP 10]^000000","- ^008B8BRankings of GvG [TOP 10]^000000"))
{
case 1:
 
    mes @nome$;
    mes "Okay, This is the List of PvP [TOP 10]";
    next;
    query_sql "SELECT name, kills, deaths FROM PVP ORDER BY kills DESC LIMIT 10",@name$,@kills,@deaths;
    dispbottom "Ranking PvP [TOP 10]";
    dispbottom " ";
    dispbottom "Position <~> Name <~> Kill <~> Died";
    dispbottom " ";
    for(set @i,0;@i<=9;set @i,@i+1) {
        dispbottom "["+(@i+1)+"] <~> "+@name$[@i]+" <~> "+@kills[@i]+" <~> "+@deaths[@i]+"";
    }
    close2;
    cutin "",255;
    end;
    
case 2:
 
    mes @nome$;
    mes "Okay, This is the List of GvG [TOP 10]";
    next;
    query_sql "SELECT name, kills, deaths FROM gvg ORDER BY kills DESC LIMIT 10",@guild_name$,@guild_kills,@guild_deaths;
    dispbottom "Ranking GvG [TOP 10]";
    dispbottom " ";
    dispbottom "Position <~> Name of the Guild <~> Wins <~> Loses";
    dispbottom " ";
    for(set @i,0;@i<=9;set @i,@i+1) {
        dispbottom "["+(@i+1)+"] <~> "+@guild_name$[@i]+" <~> "+@guild_kills[@i]+" <~> "+@guild_deaths[@i]+"";
    }
    close2;
    cutin "",255;
    end;
    
    }
}
}
} 

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