30.03.2016, 21:29
O pawn ta travando mas eu n sei como arrumar pq se eu der tab ele vai tirar a ultima chave e vai dar warning
pawn Код:
if(!strcmp(cmdtext, "/plantarb", true))
{
if(bomb1[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(Bombp != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Alguem ja plantou uma bomba aqui.");
return 1;
}
if(!PlayerToPoint(2.0 ,playerid, 1928.771484,-1785.187012,13.139766))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк Nгo esta no caixa eletronico.");
return 1;
}
if(Explodido != 0)
{
SendClientMessage(playerid, COLOR_GREY, "o caixa elкtronico foi explodido, espere quando ele estiver pronto!.");
return 1;
}
pdinhe1 = 0;
pdinhe2 = 0;
pdinhe3 = 0;
pdinhe4 = 0;
pdinhe5 = 0;
pdinhe6 = 0;
pdinhe7 = 0;
Bombp = 1;
bomb1[playerid] = 0;
bombe[playerid] = 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк plantou uma Bomba no caixa Digite /explodirb.");
GameTextForPlayer(playerid,"~r~Bomba plantada",5000, 5);
return 1;
}
else if(bomb11[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(Bombpp != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Alguem ja plantou uma bomba aqui.");
return 1;
}
if(!PlayerToPoint(2.0 ,playerid, 2232.3899,-1162.6554,25.8906))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк Nгo esta no caixa eletronico.");
return 1;
}
if(Explodidoo != 0)
{
SendClientMessage(playerid, COLOR_GREY, "o caixa elкtronico foi explodido, espere quando ele estiver pronto!.");
return 1;
}
pdinhe11 = 0;
pdinhe22 = 0;
pdinhe33 = 0;
pdinhe44 = 0;
pdinhe55 = 0;
pdinhe66 = 0;
pdinhe77 = 0;
Bombpp = 1;
bomb11[playerid] = 0;
bombee[playerid] = 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк plantou uma Bomba no caixa Digite /explodirb.");
GameTextForPlayer(playerid,"~r~Bomba plantada",5000, 5);
return 1;
}