How do I make this?
#4

Use this code
Код:
format(string, sizeof(string), "%s - Admin Rank: "COL_LIGHTBLUE"%s "COL_WHITE"("COL_GREEN"On Duty"COL_WHITE")", pname, LevelToRank(PlayerInfo[playerid][pAdmin]));
Notice how I replaced %d with %s and changed PlayerInfo[playerid][pAdmin] to LevelToRank(PlayerInfo[playerid][pAdmin])

Next you need to define LevelToRank so here it is
Код:
stock LevelToRank(level)
{
    new rank[20];
    switch(level)
    {
       case 1: rank = "Moderator";
       case 2: rank = "Whatever you want";
       etc....
       case 6: rank = "Owner";
       default: rank = "Player";
    }
   return rank;
}
You obviously need to finish working on LevelToRank and by the way I did not test that code
Reply


Messages In This Thread
How do I make this? - by AndreiWow - 04.09.2015, 16:29
Re: How do I make this? - by SWAT4 - 04.09.2015, 16:35
Re: How do I make this? - by AndreiWow - 04.09.2015, 16:38
Re: How do I make this? - by mirou123 - 04.09.2015, 16:48
Re: How do I make this? - by AndreiWow - 04.09.2015, 17:02

Forum Jump:


Users browsing this thread: 2 Guest(s)