[DUV]erro para criar 3dlabel em bizz
#1

galera vi o tuto do LeLete fiz certim mais da esses erro:
pawn Code:
C:\Users\B\Desktop\SERVER SAMP 0.3A\gamemodes\brasilsamproyal.pwn(4) : error 017: undefined symbol "MAX_CASAS"
C:\Users\B\Desktop\SERVER SAMP 0.3A\gamemodes\brasilsamproyal.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
ja defini no topo:
pawn Code:
new Text3D:HouseLabel[MAX_CASAS];
no ongamemodeinit:
pawn Code:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            new Casa[128];
            format(Casa, sizeof(Casa), "[CASA A VENDA]\n|Nome: %s |\n|Nнvel: %d|\n|Preзo: US$%d|\n|Use /comprarcasa para esta propriedade.|",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hValue]);
            HouseLabel[h] = Create3DTextLabel(Casa,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60,0,1);
            AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            new Casa2[128];
            format(Casa2, sizeof(Casa2), "[CASA]\n|Nome: %s |\n|Nнvel: %d|\n|Dono: %s|\n|Use /alugarquarto para alugar um quarto nesta propriedade.|",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hOwner]);
            HouseLabel[h] = Create3DTextLabel(Casa2,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60,0,1);
            AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
    }
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
    }
agradeзo desde jA
Reply


Messages In This Thread
[DUV]erro para criar 3dlabel em bizz - by Steven Adler - 24.11.2010, 17:32
Re: [DUV]erro para criar 3dlabel em bizz - by faeldk - 24.11.2010, 18:47
Re: [DUV]erro para criar 3dlabel em bizz - by [FeK]Knife - 24.11.2010, 19:04
Re: [DUV]erro para criar 3dlabel em bizz - by faeldk - 24.11.2010, 19:12

Forum Jump:


Users browsing this thread: 2 Guest(s)