Get Rank
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
stock GetRankName(rankid)
{
    new rankname[32];
    switch(rankid)
    {
        case 1: rankname = "Rank1";
        case 2: rankname = "Rank2";
        case 3: rankname = "Rank3";
        default: rankname = "None";
    }
    return rankname;
}
Example:
pawn Код:
format(string, sizeof(string), "Your rank is %s", GetRankName(rank0[playerid]));
SendClientMessage(playerid, -1, string);
Thanks dude,i need it for ini. U know how?
Reply


Messages In This Thread
Get Rank - by Admigo - 13.08.2011, 12:36
Re: Get Rank - by MadeMan - 13.08.2011, 14:14
Re: Get Rank - by Admigo - 13.08.2011, 14:20
Re: Get Rank - by MadeMan - 13.08.2011, 14:22
Re: Get Rank - by Admigo - 13.08.2011, 14:26
Re: Get Rank - by MadeMan - 13.08.2011, 14:35
Re: Get Rank - by Admigo - 13.08.2011, 14:42
Re: Get Rank - by MadeMan - 13.08.2011, 14:45
Re: Get Rank - by Admigo - 13.08.2011, 14:45
Re: Get Rank - by MadeMan - 13.08.2011, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)