[HELP] Why this command doesnt work?
#1

pawn Код:
if(strcmp(cmd, "/giveweaponlicense", true) == 0 || strcmp(cmd, "/gwl", true) == 0)
    {
      giveplayerid = ReturnUser(tmp);
      if(IsPlayerConnected(giveplayerid))
        {
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
            {
                if(PlayerInfo[playerid][pRank] < 2)
                {
              if(giveplayerid != INVALID_PLAYER_ID)
                    {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(giveplayerid,x,y,z);
                if(!PlayerToPoint(15, playerid, x, y, z))
                        {
                  SendClientMessage(playerid, COLOR_GRAD1, " Player is not near you!");
                  return 1;
                }
                if(PlayerInfo[giveplayerid][pGunLic] == 1)
                        {
                  SendClientMessage(playerid, COLOR_GRAD1, " Player already haves weapon license.");
                  return 1;
                }
                PlayerInfo[giveplayerid][pGunLic] = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* Officer %s gave you Weapons License.", sendername);
                        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "* You gave Weapons License to %s.",giveplayerid);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
              }
                }
                else
                {
                  SendClientMessage(playerid, COLOR_GRAD1, " You need to be Rank 2 to give license!");
                  return 1;
                }
            }
            else
            {
              SendClientMessage(playerid, COLOR_GRAD1, " You are not Cop!");
              return 1;
            }
        }
        return 1;
    }
When i type /gwl nothing happens, why?
Reply


Messages In This Thread
[HELP] Why this command doesnt work? - by Spatman - 12.08.2009, 17:12
Re: [HELP] Why this command doesnt work? - by wilcock33 - 12.08.2009, 17:17
Re: [HELP] Why this command doesnt work? - by Spatman - 12.08.2009, 17:26
Re: [HELP] Why this command doesnt work? - by _Vortex - 12.08.2009, 17:56
Re: [HELP] Why this command doesnt work? - by Spatman - 12.08.2009, 18:08
Re: [HELP] Why this command doesnt work? - by _Vortex - 12.08.2009, 18:11
Re: [HELP] Why this command doesnt work? - by Spatman - 12.08.2009, 18:20
Re: [HELP] Why this command doesnt work? - by Shots - 12.08.2009, 20:36
Re: [HELP] Why this command doesnt work? - by HuRRiCaNe - 13.08.2009, 00:54
Re: [HELP] Why this command doesnt work? - by Spatman - 13.08.2009, 08:52

Forum Jump:


Users browsing this thread: