SA-MP Forums Archive
[DUV]erro para criar 3dlabel em bizz - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUV]erro para criar 3dlabel em bizz (/showthread.php?tid=193036)



[DUV]erro para criar 3dlabel em bizz - Steven Adler - 24.11.2010

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


Re: [DUV]erro para criar 3dlabel em bizz - faeldk - 24.11.2010

Minha ta errada '-'.


Re: [DUV]erro para criar 3dlabel em bizz - [FeK]Knife - 24.11.2010

wtf ? /\ Da pra fazer isso ? Nem sabia :X
pawn Code:
#define MAX_CASAS 500



Re: [DUV]erro para criar 3dlabel em bizz - faeldk - 24.11.2010

Quote:
Originally Posted by [FeK]Knife
View Post
wtf ? /\ Da pra fazer isso ? Nem sabia :X
pawn Code:
#define MAX_CASAS 500
Nem eu Rs.

so que eu achei que dava '-'.