Setting Rank Name via CMD
#1

I'm having issues making this command work, and I can't figure out why..

pawn Код:
CMD:setrankname(playerid, params[])
{
    new
        pID,
        rankname[255],
        string[104];
    if(sscanf(params, "us[255]", pID, rankname)) return SendClientMessage(playerid, COLOR_RED, "Server: Use the command like this: /setrankname playerid rankname");
    if(PlayerInfo[playerid][pRank] == 7)
    {
        if(PlayerInfo[playerid][pMember] == PlayerInfo[pID][pMember])
        {
                PlayerInfo[pID][pRank] = rankname;
                format( string, sizeof( string ), "Your rank name has been changed to: %s", rankname);
                SendClientMessage(pID, COLOR_ORANGE, string);

        }
    }
    return 1;
}
The SendClientMessage never shows up either, so im guessing

PHP код:
if(PlayerInfo[playerid][pMember] == PlayerInfo[pID][pMember]) 
Is the issue, how could i fix this? Thanks in advance cookies to all
Reply


Messages In This Thread
Setting Rank Name via CMD - by Abreezy - 10.01.2012, 19:22
Re: Setting Rank Name via CMD - by Mean - 10.01.2012, 19:49
Re: Setting Rank Name via CMD - by Abreezy - 10.01.2012, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)