SA-MP Forums Archive
[DUV] erro na 24-7 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUV] erro na 24-7 (/showthread.php?tid=146775)



[DUV] erro na 24-7 - [Ips]Guh - 09.05.2010

eu entro na 24-7,dae qualquer coisa que vou comprar aparece :Fim de estoque
o que sera isso?


Re: [DUV] erro na 24-7 - ipsBruno - 09.05.2010

Posta linhas do erro nгo temos Bolas de Cristal

Ja To Cansado de Falar isso!


Re: [DUV] erro na 24-7 - [Ips]Guh - 09.05.2010

Quote:
Originally Posted by DraKoN
Posta linhas do erro nгo temos Bolas de Cristal

Ja To Cansado de Falar isso!
Код:
if(strcmp(cmd, "/comprar", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
			{
				SendClientMessage(playerid, COLOR_GRAD2, "  Vocк nгo estб na 24-7 !");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USO: /comprar [item nъmero]");
				SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
				SendClientMessage(playerid, COLOR_GRAD1, "| 1: Celular R$500			2: Cartгo R$500");
				SendClientMessage(playerid, COLOR_GRAD2, "| 3: Agenda Telefфnica R$500 4: Dado R$500");
				SendClientMessage(playerid, COLOR_GRAD3, "| 5: Chaves R$5000		    6: Trava de Veнculo R$10000");
				SendClientMessage(playerid, COLOR_GRAD4, "| 7: Velocнmetro R$5000		8: Preservativo R$50");
				SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player R$2500			10: Frango R$10	");
				SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger R$10			12: Pizza Congelada R$10");
				SendClientMessage(playerid, COLOR_GRAD5, "| 13: Corda R$10");
				return 1;
			}
			new item = strval(tmp);
			if(SBizzInfo[9][sbProducts] == 100)
			{
				GameTextForPlayer(playerid, "~r~fim de estoque", 5000, 1);
				return 1;
			}



Re: [DUV] erro na 24-7 - pawNO - 09.05.2010

Tenta assim:
pawn Код:
if(strcmp(cmd, "/comprar", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
            {
                SendClientMessage(playerid, COLOR_GRAD2, "  Vocк nгo estб na 24-7 !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USO: /comprar [item nъmero]");
                SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
                SendClientMessage(playerid, COLOR_GRAD1, "| 1: Celular R$500            2: Cartгo R$500");
                SendClientMessage(playerid, COLOR_GRAD2, "| 3: Agenda Telefфnica R$500 4: Dado R$500");
                SendClientMessage(playerid, COLOR_GRAD3, "| 5: Chaves R$5000            6: Trava de Veнculo R$10000");
                SendClientMessage(playerid, COLOR_GRAD4, "| 7: Velocнmetro R$5000       8: Preservativo R$50");
                SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player R$2500         10: Frango R$10 ");
                SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger R$10          12: Pizza Congelada R$10");
                SendClientMessage(playerid, COLOR_GRAD5, "| 13: Corda R$10");
                return 1;
            }
            new item = strval(tmp);
            if(SBizzInfo[9][sbProducts] == 0)
            {
                GameTextForPlayer(playerid, "~r~fim de estoque", 5000, 1);
                return 1;
            }
Espero ter ajudado.


Re: [DUV] erro na 24-7 - ipsBruno - 09.05.2010

pawn Код:
iif(strcmp(cmd, "/comprar", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
{
SendClientMessage(playerid, COLOR_GRAD2, "  Vocк nгo estб na 24-7 !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USO: /comprar [item nъmero]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
SendClientMessage(playerid, COLOR_GRAD1, "| 1: Celular R$500     2: Cartгo R$500");
SendClientMessage(playerid, COLOR_GRAD2, "| 3: Agenda Telefфnica R$500 4: Dado R$500");
SendClientMessage(playerid, COLOR_GRAD3, "| 5: Chaves R$5000         6: Trava de Veнculo R$10000");
SendClientMessage(playerid, COLOR_GRAD4, "| 7: Velocнmetro R$5000    8: Preservativo R$50");
SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player R$2500  10: Frango R$10    ");
SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger R$10   12: Pizza Congelada R$10");
SendClientMessage(playerid, COLOR_GRAD5, "| 13: Corda R$10");
return 1;
}
new item = strval(tmp);
if(SBizzInfo[9][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~fim de estoque", 5000, 1);
return 1;
}



Re: [DUV] erro na 24-7 - pawNO - 09.05.2010

Й igual, xD


Re: [DUV] erro na 24-7 - ipsBruno - 09.05.2010

lal nem vi, deu um negocio vermelho U.u


Re: [DUV] erro na 24-7 - Miic - 15.05.2010

pawn Код:
if(strcmp(cmd, "/comprar", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
            {
                SendClientMessage(playerid, COLOR_GRAD2, "  Vocк nгo estб na 24-7 !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USO: /comprar [item nъmero]");
                SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
                SendClientMessage(playerid, COLOR_GRAD1, "| 1: Celular R$500            2: Cartгo R$500");
                SendClientMessage(playerid, COLOR_GRAD2, "| 3: Agenda Telefфnica R$500 4: Dado R$500");
                SendClientMessage(playerid, COLOR_GRAD3, "| 5: Chaves R$5000            6: Trava de Veнculo R$10000");
                SendClientMessage(playerid, COLOR_GRAD4, "| 7: Velocнmetro R$5000       8: Preservativo R$50");
                SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player R$2500         10: Frango R$10 ");
                SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger R$10          12: Pizza Congelada R$10");
                SendClientMessage(playerid, COLOR_GRAD5, "| 13: Corda R$10");
                return 1;
            }
            new item = strval(tmp);



Re: [DUV] erro na 24-7 - sergio_killer - 15.05.2010

vai ver q ta faltando produtos na empresa 24-7


Re: [DUV] erro na 24-7 - stonerbrasil - 15.05.2010

estб faltando produto na empresaІ cada coisa.. vc pode encher o estoque com o caminhao IN-GAME ou modifica no biz.cfg/sbiz.cfg