Command Does nothing?
#3

I'm surprised it didn't give you any error.. anyway

pawn Код:
COMMAND:finvitelspd(playerid, params[])
{
    if(pLSPD[playerid] >= 5)
    {
        new toplayerid, // the player we want to make SA-PD
            rank; // extracting player's ID and rank from params
        if (!sscanf(params, "ui", toplayerid, rank))
        {
          if (toplayerid != INVALID_PLAYER_ID)
          {
            pLSPD[toplayerid] = rank;
            new
            message[40];
            format(message, sizeof(message), "You were set rank %i By the SA-PD Leader.!", rank);
            SendClientMessage(toplayerid, 0x00FF00FF, message);
          }
          else SendClientMessage(playerid, 0xFF0000FF, "That player is not connected");
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /finvite <playerid> <rank>");
    }
    else SendClientMessage(playerid, 0xFF0000FF, "Only the SA-PD Leader can use this command!");
    return 1;
}
Assuming that plspd is for players not just an array..
Reply


Messages In This Thread
Command Does nothing? - by Lz - 11.12.2012, 18:08
Re: Command Does nothing? - by ReVo_ - 11.12.2012, 18:27
Re: Command Does nothing? - by InfiniTy. - 11.12.2012, 18:35
Re: Command Does nothing? - by Lz - 11.12.2012, 18:38
Re: Command Does nothing? - by ReVo_ - 11.12.2012, 19:55
Re: Command Does nothing? - by NoahF - 11.12.2012, 22:04
Re: Command Does nothing? - by Lz - 13.12.2012, 09:44
Re: Command Does nothing? - by Roel - 13.12.2012, 10:43
Re: Command Does nothing? - by Lz - 13.12.2012, 10:45
Re: Command Does nothing? - by Roel - 13.12.2012, 10:52

Forum Jump:


Users browsing this thread: 5 Guest(s)