[DUV] erro na 24-7
#1

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

Posta linhas do erro nгo temos Bolas de Cristal

Ja To Cansado de Falar isso!
Reply
#3

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;
			}
Reply
#4

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.
Reply
#5

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;
}
Reply
#6

Й igual, xD
Reply
#7

lal nem vi, deu um negocio vermelho U.u
Reply
#8

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);
Reply
#9

vai ver q ta faltando produtos na empresa 24-7
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)