SA-MP Forums Archive
House System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: House System (/showthread.php?tid=510459)



House System - biker122 - 01.05.2014

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



Re: House System - JeaSon - 01.05.2014

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



Re: House System - biker122 - 01.05.2014

Nope, I still have that warning.


Re: House System - Danyal - 01.05.2014

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

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



Re: House System - biker122 - 01.05.2014

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