Integer convert to String
#3

I use this, just modify it to your needs:
pawn Код:
stock GetLevel(levelid)
{
    new rankname[32];
    switch(levelid)
    {
        case 1: rankname = "Junior Moderator";
        case 2: rankname = "Moderator";
        case 3: rankname = "Junior Administrator";
        case 4: rankname = "Administrator";
        case 5: rankname = "Head Administrator";
        case 6: rankname = "Project Lead";
        default: rankname = "User";
    }
    return rankname;
}
You could use it in this way:
pawn Код:
GetLevel(pInfo[playerid][Admin])
Reply


Messages In This Thread
Integer convert to String - by Genmetal - 02.04.2015, 14:42
Re: Integer convert to String - by Vince - 02.04.2015, 14:45
Re: Integer convert to String - by Jimmy0wns - 02.04.2015, 14:45
Re: Integer convert to String - by CalvinC - 02.04.2015, 14:49
Re: Integer convert to String - by Genmetal - 02.04.2015, 14:50
Re: Integer convert to String - by Genmetal - 02.04.2015, 14:56
Re: Integer convert to String - by PT - 02.04.2015, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)