SA-MP Forums Archive
Buenas, tengo una duda. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Buenas, tengo una duda. (/showthread.php?tid=578530)



Buenas, tengo una duda. - PandorumRoleplay - 20.06.2015

Buenas, e estado dandole vueltas a este script, y bueno no logro entender porque solo entra el dueсo al negocio, los usuarios no pueden si no son dueсos del negocio.

pawn Код:
new NegocioID, BusType;
    for (new BusSlot; BusSlot < MAXIMO_NEGOCIOSJUGADOR; BusSlot++)
    {
        NegocioID = APlayerData[playerid][Business][BusSlot];
        if (NegocioID != 0){
            if (IsPlayerInRangeOfPoint(playerid, 5.0, NegocioInfo[NegocioID][NegocioX], NegocioInfo[NegocioID][NegocioY], NegocioInfo[NegocioID][NegocioZ]))
            {
                BusType = NegocioInfo[NegocioID][TipoNegocio];
                SetPlayerVirtualWorld(playerid, 2000 + NegocioID);
                SetPlayerInterior(playerid, ABusinessInteriors[BusType][InteriorID]);
                SetPlayerPos(playerid, ABusinessInteriors[BusType][IntX], ABusinessInteriors[BusType][IntY], ABusinessInteriors[BusType][IntZ]);
                APlayerData[playerid][CurrentBusiness] = NegocioID;
                return 1;
            }
        }
    }
їalguna soluciуn?


Re: Buenas, tengo una duda. - PandorumRoleplay - 22.06.2015

Solucionado