[Ajuda] Sistema de cozinhar
#1

Bom dia pessoal,
entгo a alguns dias atrбs eu consegui consertar o comando de /aceitar entrega, para o serviзo de pizza, com a ajuda de vocкs, mas agora estou com outro problema, o entregador se chamado consegue ir atй a pessoa e vender a pizza, esta fica em um dos slots de cozinhar blz, mas quando vocк vai na pizzaria e da /cozinhar pizza, simplesmente ao invйs de vir 'tantos KG(Kilos)' de pizza, vem 0KG, porйm se vocк comprar a pizza na 24/7 vem normalmente 'tantos Kilos' apуs cozinhar. Entгo de certa forma a pizza vendida pelo entregador nгo serve pra nada. Gostaria que me ajudassem se pudessem a resolver isso, seja mudando o comando de /aceitar pizza para que jб venha a pizza cozinhada para um dos slots ou para que quando for cozinhar vir 'tantos Kilos' diferente de 0. Segue o comando abaixo da parte de cozinhar pizza:
Quote:

else if(strcmp(x_nr,"pizza",true) == 0)
{
if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
{//Well Stacked Pizza
if(Groceries[playerid][pPizza] != 0)
{
if(Cooking[playerid][pCWeight1] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight1] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID1] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook1],Cooking[playerid][pCWeight1]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight2] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight2] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID2] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook2],Cooking[playerid][pCWeight2]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight3] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight3] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID3] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook3],Cooking[playerid][pCWeight3]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight4] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight4] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID4] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook4],Cooking[playerid][pCWeight4]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight5] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight5] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID5] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook5],Cooking[playerid][pCWeight5]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem espaзo na sua lista de cozinha !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo possui pizzas com vocк !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar no Well Stack Pizza para cozinhar isto !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nъmero de cozinha invбlido !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб nos lugares de cozinha (Cluckin Bell / Burger Shot / Well Stacked Pizza).");
return 1;
}
return 1;

Reply
#2

Код:
if(Cooking[playerid][pCWeight1] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight1] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID1] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook1],Cooking[playerid][pCWeight1]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight2] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight2] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID2] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook2],Cooking[playerid][pCWeight2]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight3] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight3] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID3] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook3],Cooking[playerid][pCWeight3]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight4] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight4] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID4] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook4],Cooking[playerid][pCWeight4]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
else if(Cooking[playerid][pCWeight5] == 0)
{
format(string, sizeof(string), "Pizza cozinhada");
strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight5] = Groceries[playerid][pHamburger];
Cooking[playerid][pCookID5] = 30;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
format(string, sizeof(string), "* Vocк fez um(a) %s, %d KGs.",Cooking[playerid][pCook5],Cooking[playerid][pCWeight5]);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
Cooking[playerid][pCWeight1] = Groceries[playerid][pHamburger];
:S todos usam pHamburger?
Reply
#3

Verdade. serб que se eu trocar o [pHamburguer] por [pPizza] vai resolver o problema?
Reply
#4

Obviamente....
Reply
#5

Obrigado resolveu mesmo, parou de dar 0KGs e passou a dar 14KGs.
Reply
#6

Ana maria braga pode te ajudar com os problemas da cozinha !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)