[AJUDA] Erros ;s
#6

Quote:
Originally Posted by cabelo
cara procurei e nгo achei, vou passa o comando pra vocк pra ve se vc entende melhor,,

Код:
	if(strcmp(cmdtext, "/usardrogas", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	 	{
	 	  if(PlayerBoxing[playerid] > 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, " Vocк nгo pode usar drogas durante uma luta !");
	      return 1;
	    }
			if(PlayerInfo[playerid][pDrugs] > 1)
			{
			  PlayerStoned[playerid] += 0;
			  if(PlayerStoned[playerid] >= 3) { GameTextForPlayer(playerid, "~w~voce esta~n~~p~chapado", 4000, 1); }
			  new Float:Armour;
			  GetPlayerArmour(playerid, Armour);
			  GetPlayerName(playerid, sendername, sizeof(sendername));
			  if(PlayerInfo[playerid][pDrugPerk] > 0)
			  {
			    new Armour = 2 * PlayerInfo[playerid][pDrugPerk]; Armour += 20;
					SetPlayerArmour(playerid, Armour);
			  }
			  else
			  {
			    SetPlayerArmour(playerid, Armour + 20.0);
			  }
			  SendClientMessage(playerid, COLOR_GREY, " Duas gramas usadas...");
				format(string, sizeof(string), "* %s drogou-se.", sendername);
				ApplyAnimation(playerid,"SMOKING","M_smk_in",4.1,0,1,1,1,1);
				ApplyAnimation(playerid,"SMOKING","M_smk_in",4.1,0,1,1,1,1);
				ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			  PlayerInfo[playerid][pDrugs] -= 2;
			  if(STDPlayer[playerid]==1)
				{
				  STDPlayer[playerid] = 0;
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк jб nгo estб infectado com uma doenзa sexualmente transmissнvel mais por causa da droga !");
				}
				else if(STDPlayer[playerid]==2)
				{
				  STDPlayer[playerid] = 1;
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк reduziu a DST а clamнdia devido a droga !");
				}
				else if(STDPlayer[playerid]==3)
				{
				  STDPlayer[playerid] = 2;
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк reduziu a DST а gonorrйia devido a droga !");
				}
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem gramas suficientes !");
			}
		}
		return 1;
	}
tenta assim!
pawn Код:
if(strcmp(cmdtext, "/usardrogas", true) == 0)
    {
      if(IsPlayerConnected(playerid))
        {
          if(PlayerBoxing[playerid] > 0)
        {
          SendClientMessage(playerid, COLOR_GREY, "  Vocк nгo pode usar drogas durante uma luta !");
          return 1;
        }
            if(PlayerInfo[playerid][pDrugs] > 1)
            {
              PlayerStoned[playerid] += 0;
              if(PlayerStoned[playerid] >= 3) { GameTextForPlayer(playerid, "~w~voce esta~n~~p~chapado", 4000, 1); }
              new Float:Colete;
              GetPlayerColete(playerid, Colete);
              GetPlayerName(playerid, sendername, sizeof(sendername));
              if(PlayerInfo[playerid][pDrugPerk] > 0)
              {
                new Colete = 2 * PlayerInfo[playerid][pDrugPerk]; Colete += 20;
                    SetPlayerColete(playerid, Colete);
              }
              else
              {
                SetPlayerColete(playerid, Colete + 20.0);
              }
              SendClientMessage(playerid, COLOR_GREY, "  Duas gramas usadas...");
                format(string, sizeof(string), "* %s drogou-se.", sendername);
                ApplyAnimation(playerid,"SMOKING","M_smk_in",4.1,0,1,1,1,1);
                ApplyAnimation(playerid,"SMOKING","M_smk_in",4.1,0,1,1,1,1);
                ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
              PlayerInfo[playerid][pDrugs] -= 2;
              if(STDPlayer[playerid]==1)
                {
                   STDPlayer[playerid] = 0;
                   SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк jб nгo estб infectado com uma doenзa sexualmente transmissнvel mais por causa da droga !");
                }
                else if(STDPlayer[playerid]==2)
                {
                   STDPlayer[playerid] = 1;
                   SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк reduziu a DST а clamнdia devido a droga !");
                }
                else if(STDPlayer[playerid]==3)
                {
                   STDPlayer[playerid] = 2;
                   SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк reduziu a DST а gonorrйia devido a droga !");
                }
            }
            else
            {
              SendClientMessage(playerid, COLOR_GREY, "  Vocк nгo tem gramas suficientes !");
            }
        }
        return 1;
    }
agora o warning
pawn Код:
symbol is never used: "GetPointDistanceToPointExMorph"
nгo intendi...
tenta achar essa funзгo e posta para min dar uma olhada ^^
Reply


Messages In This Thread
[AJUDA] Erros ;s - by cabelo - 16.03.2010, 00:55
Re: [AJUDA] Erros ;s - by [SK]Mulek - 16.03.2010, 01:30
Re: [AJUDA] Erros ;s - by cabelo - 16.03.2010, 01:42
Re: [AJUDA] Erros ;s - by [SK]Mulek - 16.03.2010, 01:52
Re: [AJUDA] Erros ;s - by cabelo - 16.03.2010, 01:56
Re: [AJUDA] Erros ;s - by Poderoso Chefгo - 16.03.2010, 11:09
Re: [AJUDA] Erros ;s - by wafffllesss - 16.03.2010, 11:57
Re: [AJUDA] Erros ;s - by Ricardo_Saddler - 16.03.2010, 12:15
Re: [AJUDA] Erros ;s - by cabelo - 16.03.2010, 14:59
Re: [AJUDA] Erros ;s - by pawNO - 16.03.2010, 15:25

Forum Jump:


Users browsing this thread: 3 Guest(s)