[HELP] GetPlayerRank
#1

Hello,



Код:
stock GetPlayerRank(playerid)
{
	new rank[100];
	
	switch(Kills3[playerid])
	{
	case 0..25:rank = "Newbie Shooter";
	case 26..75:rank = "Killer Shooter";
	case 76..150:rank = "Master Shooter";
	case 151..300:rank = "Pro Shooter";
	case 301..450:rank = "Striker Shooter";
	case 451..675:rank = "Freekill Shooter";
	case 676..1000:rank = "Psycho Shooter";
	case 1001..1500:rank = "Fatal Shooter";
	case 1501..2250:rank = "Havoc Shooter";
	case 2251..3375:rank = "Extreme Shooter";
	case 3376..5100:rank = "Wild Shooter";
	case 5101..7650:rank = "Hazardous Shooter";
	case 7651..11475:rank = "IGI Shooter";
	case 11476..17500:rank = "Tactical Shooter";
	case 17501..26250:rank = "Deticated Shooter";
	case 26251..39375:rank = "Insane Shooter";
	case 39376..60000:rank = "The Real Shooter";
	case 60001..100000:rank = "Professional Shooter";
	case 100001..150000:rank = "Rockstar Shooter";
	}
	
	return rank;
}
ok i make this function for Getting Player Ranks:
this function works but Compile Time too much maybe 3 or 4 minutes

can u guyz plz tell me how i make GetPlayerRank func with another method ??

Please Help..
Reply
#2

pawn Код:
stock GetPlayerRank(playerid)
{
    new rank[64];
    new kills = Kills3[playerid];
   
    if(kills >= 0 && kills <= 25) rank = "Newbie Shooter";
    else if(kills >= 26 && kills <= 75) rank = "Killer Shooter";
    else if(kills >= 76 && kills <= 150) rank = "Master Shooter";
    else if(kills >= 151 && kills <= 300) rank = "Pro Shooter";
    ...
Reply
#3

nvm fixed lol i didnt use if else in stock before i used in public its giving me error

btw thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)