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; }
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;
}
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;
}
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);