[ajuda]Erro
#7

Qual compilo?
Meu ou do CidadeNovaRP?
@EDIT
Se foi o meu,tenta :
pawn Код:
public RouboBanco(playerid) {
    KillTimer(tempobanco);
    if(!PlayerToPoint(8.0,playerid,2144.2131,1641.8859,993.5761)) {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Banco! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre do banco.");
        ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
        ClearAnimations(playerid);
        RemovePlayerAttachedObject(playerid,0);
        return 1;
    }
    new grana = 1000 + random(60000);
    if(PlayerToPoint(10.0,playerid,2144.2131,1641.8859,993.5761)) {
        new var032=0;
        if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
        else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
        if(ProvocoBanco[playerid] == 1) {
            format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre do Banco! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), gstring);
            roubando[playerid] = 0; roubobanco = 0; ProvocoBanco[playerid] = 0;
            RemovePlayerAttachedObject(playerid,0);
            ClearAnimations(playerid);
        }
        if (PlayerInfo[playerid][pLider] == var032 || PlayerInfo[playerid][pMembro] == var032)
        {
            new Float:p[3];
            GetPlayerPos(playerid,p[0],p[1],p[2]);
            if(!IsPlayerInRangeOfPoint(playerid, 10 , p[0], p[1], p[2]))
            SetPlayerCriminal(playerid,255, "Assalto ao Banco");
            GivePlayerMoney(playerid, grana);
            format(gstring, sizeof(gstring), "Vocк e os %s roubaram $%d do cofre do Banco!",NomeORG(playerid), grana);
            SendClientMessage(playerid, COLOR_YELLOW, gstring);
                    return 1;
    }
    return 1;
}
Reply


Messages In This Thread
[ajuda]Erro - by Luiiz - 18.04.2012, 15:35
Re: [ajuda]Erro - by mau.tito - 18.04.2012, 15:38
Re: [ajuda]Erro - by Luiiz - 18.04.2012, 15:55
Re: [ajuda]Erro - by @Riichard - 18.04.2012, 15:58
Re: [ajuda]Erro - by CidadeNovaRP - 18.04.2012, 15:58
Re: [ajuda]Erro - by Luiiz - 18.04.2012, 16:04
Re: [ajuda]Erro - by @Riichard - 18.04.2012, 16:06
Re: [ajuda]Erro - by CidadeNovaRP - 18.04.2012, 16:09
Re: [ajuda]Erro - by Luiiz - 18.04.2012, 16:11
Re: [ajuda]Erro - by Luiiz - 18.04.2012, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)