[Ajuda] PQ esse comando nгo estб funfando
#1

Eu descarrego nos postos e nгo ganha o dinhero .-. como fasso isso eu fis assim acho que estб errado

pawn Код:
if (strcmp(cmd, "/descarregarp", true) == 0)
{
if (PlayerToPoint(60.0, playerid, 1935.5637,-1771.5033,13.382) || PlayerToPoint(60.0, playerid, 610.0511,1700.9008,6.9922))
if(dini_Int(file, "Profissao") == Petroleiro){
if (PlayerToPoint(60.0, playerid, 610.0511,1700.9008,6.9922))
    {
  GivePlayerGrana(playerid, 80);
}
if (PlayerToPoint(60.0, playerid, 69.7854,1219.2927,18.8093))
{
    GivePlayerGrana(playerid, 70);
}
else if (PlayerToPoint(60.0, playerid, -1676.2520,413.1227,7.1797))//3
{
    GivePlayerGrana(playerid, 920);
}
else if  (PlayerToPoint(60.0, playerid, -89.3602,-1165.5499,2.3493))//4
{
    GivePlayerGrana(playerid, 500);
}
else    if (PlayerToPoint(60.0, playerid, 1002.8900,-941.1104,42.1797))//5
{
    GivePlayerGrana(playerid, 850);
}
else    if (PlayerToPoint(60.0, playerid, 1938.6797,-1770.5103,13.3828))//6
{
    GivePlayerGrana(playerid, 1200);
}
else    if (PlayerToPoint(60.0, playerid, -1605.5865,-2713.5432,48.5335))//7
{
    GivePlayerGrana(playerid, 1350);
}
else    if (PlayerToPoint(60.0, playerid, 670.6545,1726.7865,7.1875))//8
{
    GivePlayerGrana(playerid, 900);
}
    }
   else
    {
    if (Carregamento[playerid] == 1)
        {
            SendClientMessage(playerid, Vermelho, "** Seu veнculo nгo estб carregado!");
            return 1;
        }
        else
        {
            Carregamento[playerid] = 1;
            SendClientMessage(playerid, 0x99FFFFAA, "* Seu Veiculo Foi descarregado e Vocк ganhou.");
            SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
                return 1;
            }
        }

        {
        SendClientMessage(playerid, Vermelho, "** Vocк nгo esta no check de descarga.");
        return 1;
    }
}
Sу quero que descarrega em qualquer posto tenho todas as cordenadas mais nгo estб dando certo

alguem da uma ajuda valendo reply
Reply


Messages In This Thread
PQ esse comando nгo estб funfando - by Cromado - 14.05.2013, 21:09
Re: PQ esse comando nгo estб funfando - by AlucardSnow - 14.05.2013, 21:16
Re: PQ esse comando nгo estб funfando - by Wellington1999 - 14.05.2013, 21:33
Re: PQ esse comando nгo estб funfando - by mau.tito - 14.05.2013, 22:27
Re: PQ esse comando nгo estб funfando - by PT - 15.05.2013, 09:11
Re: PQ esse comando nгo estб funfando - by ProKillerpa - 15.05.2013, 17:00
Re: PQ esse comando nгo estб funfando - by PT - 15.05.2013, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)