I have a problem with 3D Text Labels and Pickups
#1

Well the thing is that im making a Hotel system for a RolePlay server and well, all the commands that the rooms have work perfectly but there is a problem. I made that every single room have a Label and a pickup with the named of the owner of the room and the ID of the Room. (They are like houses) and when i run the server-samp.exe just one label create's and is the last one (ID 8 ) i want that the other seven labels and pickups creates. And i have no idea how can i do it so im here asking for it. Well this is the code
pawn Код:
function UpdateTextDrawAlquiler(alquilerid)
{
    new string[256];
    if(AlquilerInfo[alquilerid][aEstadoAlquiler] == 0)
    {
        Delete3DTextLabel(Alquiler3DText[alquilerid]);
        DestroyPickup(AlquilerPickup[alquilerid]);
        format(string, sizeof(string), "{00FF7B}Propiedad en alquiler\nValor: %d$\nID: %d\nUtilice /alquilar",AlquilerInfo[alquilerid][aPrecioRenta],AlquilerInfo[alquilerid][aAlquilerID],AlquilerInfo[alquilerid][aAlquilerID]);
        Alquiler3DText[alquilerid] = Create3DTextLabel(string,COLOR_GREEN, AlquilerInfo[alquilerid][aEntradaX], AlquilerInfo[alquilerid][aEntradaY], AlquilerInfo[alquilerid][aEntradaZ],40.0,0,0);
        printf("%s", string);
        AlquilerPickup[alquilerid] = CreatePickup(1273, 1, AlquilerInfo[alquilerid][aEntradaX], AlquilerInfo[alquilerid][aEntradaY], AlquilerInfo[alquilerid][aEntradaZ],-1);
    }
    else
    {
        DestroyPickup(AlquilerPickup[alquilerid]);
        AlquilerPickup[alquilerid] = CreatePickup(1239, 1, AlquilerInfo[alquilerid][aEntradaX], AlquilerInfo[alquilerid][aEntradaY], AlquilerInfo[alquilerid][aEntradaZ],-1);
        if(AlquilerInfo[alquilerid][aEstadoAlquiler] > 0)
        {
            Delete3DTextLabel(Alquiler3DText[alquilerid]);
            format(string, sizeof(string), "{F2FF00}Propiedad alquilada \n Propietario: %s \nID: %d",AlquilerInfo[alquilerid][aPropietario],AlquilerInfo[alquilerid][aAlquilerID]);
            Alquiler3DText[alquilerid] = Create3DTextLabel(string,COLOR_GREEN, AlquilerInfo[alquilerid][aEntradaX], AlquilerInfo[alquilerid][aEntradaY], AlquilerInfo[alquilerid][aEntradaZ],40.0,0,0);
            printf("%s", string);
        }
    }
    return 1;
}
It's in spanish because I'm Argentinian. If you didnt understand me plz respond the theme because i dont speak english very well. Thanks for reading.
Reply
#2

So.. can anyone help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)