[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
#2

Minha ta errada '-'.
Reply
#3

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

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 '-'.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)