House System
#1

I've attempted to make an house system with Y_INI.
pawn Код:
switch(HouseInfo[i][hOwned])
        {
            case 0:{format(label,sizeof(label),"Owned: No\nPrice: $%i\nVirtual World: %i\nInterior: %i",HouseInfo[i][hPrice],HouseInfo[i][hWorld],HouseInfo[i][hInterior]);}
            case 1:{format(label,sizeof(label),"Owned: Yes\nOwner: %s\nPrice: $%i\nVirtual World: %i\nInterior: %i",HouseInfo[i][hOwner],HouseInfo[i][hPrice],HouseInfo[i][hWorld],HouseInfo[i][hInterior]);}
        }
        HouseInfo[i][hLabel] = Create3DTextLabel(label,COLOR_RED,HouseInfo[i][hEnterX],HouseInfo[i][hEnterY],HouseInfo[i][hEnterZ],25.0,-1);// LINE 4797
^^ Line 4797
Warning:
Код:
C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\stunting.pwn(4797) : warning 213: tag mismatch
Reply
#2

your missing something
check here
https://sampwiki.blast.hk/wiki/Create3DTextLabel

try this
pawn Код:
switch(HouseInfo[i][hOwned])
        {
            case 0:{format(label,sizeof(label),"Owned: No\nPrice: $%i\nVirtual World: %i\nInterior: %i",HouseInfo[i][hPrice],HouseInfo[i][hWorld],HouseInfo[i][hInterior]);}
            case 1:{format(label,sizeof(label),"Owned: Yes\nOwner: %s\nPrice: $%i\nVirtual World: %i\nInterior: %i",HouseInfo[i][hOwner],HouseInfo[i][hPrice],HouseInfo[i][hWorld],HouseInfo[i][hInterior]);}
        }
        HouseInfo[i][hLabel] = Create3DTextLabel(label,COLOR_RED,HouseInfo[i][hEnterX],HouseInfo[i][hEnterY],HouseInfo[i][hEnterZ],25.0,-1,0);// LINE 4797
Reply
#3

Nope, I still have that warning.
Reply
#4

Are you initializing the HouseInfo[MAX_HOUSE][hLabel] variable as a Text3D variable?

pawn Код:
new Text3D:HouseInfo[MAX_HOUSE][hLabel];
Reply
#5

Ah, I made it before you posted!
Thanks anyways!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)