Player Rank
#1

Hi guys... I need rank system...

example

"Rank: 1/Total Registered Players(mysql)"



NOT:
new rankname[32];
switch(rankid)
{
case 1: rankname = "Rank1";
case 2: rankname = "Rank2";
case 3: rankname = "Rank3";
default: rankname = "None";
}
return rankname;
}
Reply
#2

Do you need help with something your creating or are you asking for someone to write all of the code for you?
Reply
#3

Quote:
Originally Posted by dusk
Посмотреть сообщение
Do you need help with something your creating or are you asking for someone to write all of the code for you?
I need only example...
like:
Код:
stock PlayerRank(playerid)
{
    format(query,sizeof(query),"SELECT ID FROM `users` WHERE totalscore > '%d'",PlayerInfo[playerid][pTotalScore]);
    mysql_query(query);
    mysql_store_result();
new str[256];
    new num = mysql_num_rows();
    mysql_free_result();
    strdel(str,0,strlen(str));
    format(str,sizeof(str),"You are in position %d with %d total score",(num + 1),PlayerInfo[playerid][pTotalScore]);
    SendClientMessage(playerid,COLOR,str);
	return true;
}
Reply
#4

So what are you trying to achieve? What is the problem?
Reply
#5

Explain us what you want? is it some kind of Team Ranks like as in a Faction or normal Ranks like if player's score(or any other thing) is xyz then he is in abc rank?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)