Faction rank
#8

pawn Код:
CMD:setrank(playerid, params[])
{
    new id, rank[24];
    if(sscanf(params, "us[24]", id, rank)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[PlayerID/PartOfName] [Rank]");
    else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_ORANGE"[ERROR]"#COL_LRED" Player not connected!");

    format(PlayerInfo[id][Rank], 24, "%s", rank);
    return 1;
}
make sure you have in player enum defined rank like Rank[24] cos rank is string
Reply


Messages In This Thread
XX - by Kingunit - 03.10.2011, 21:00
Re: Faction rank - by [L3th4l] - 03.10.2011, 21:16
Re: Faction rank - by TheLazySloth - 03.10.2011, 21:17
Re: Faction rank - by Kingunit - 03.10.2011, 21:18
Re: Faction rank - by Kingunit - 03.10.2011, 21:22
Re: Faction rank - by grand.Theft.Otto - 03.10.2011, 23:01
Re: Faction rank - by Kush - 03.10.2011, 23:20
Re: Faction rank - by DRIFT_HUNTER - 03.10.2011, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)