Help with a stock.
#3

pawn Код:
stock rankname(playerid)
{
    switch(PlayerInfo[playerid][pRank])
    {
        case 0: return "None";
        case 1: return "Recruit";
        case 2: rankname(playerid) = "Police Officer I";
        case 3: rankname(playerid) = "Police Officer II";
        case 4: rankname(playerid) = "Lead Officer";
        case 5: rankname(playerid) = "Senior Lead Officer";
        case 6: rankname(playerid) = "Sergeant";
        case 7: rankname(playerid) = "Staff Sergeant";
        case 8: rankname(playerid) = "Lieutenant";
        case 9: rankname(playerid) = "Captain";
        case 10: rankname(playerid) = "Commander";
        case 11: rankname(playerid) = "Deputy Chief";
        case 12: rankname(playerid) = "Chief of Police";
    }
}
This should work, just change the last ones with 'return' aswell. Though, im not really sure if it works like this
Reply


Messages In This Thread
Help with a stock. - by xRandomGuy - 29.01.2012, 20:48
Re: Help with a stock. - by LetsOWN[PL] - 29.01.2012, 20:52
Re: Help with a stock. - by Wesley221 - 29.01.2012, 21:09
Re: Help with a stock. - by MP2 - 29.01.2012, 21:11
Re: Help with a stock. - by Ash. - 29.01.2012, 21:13
Re: Help with a stock. - by MP2 - 29.01.2012, 21:15
Re: Help with a stock. - by Ash. - 29.01.2012, 21:16
Re: Help with a stock. - by yanir3 - 29.01.2012, 21:42
Re: Help with a stock. - by xRandomGuy - 29.01.2012, 21:45

Forum Jump:


Users browsing this thread: 2 Guest(s)