[Help]Create3DTextLabel
#1

Well I'm using 3DLabels instead of properties pickups, I've compiled it yesterday and everything was fine, but now..:
Код:
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5725) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5735) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5732) : warning 204: symbol is assigned a value that is never used: "string"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5744) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5754) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5751) : warning 204: symbol is assigned a value that is never used: "string"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5764) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5774) : error 017: undefined symbol "Create3DTextLabel"
E:\TRP3dlabels\samp03asvr_R4_win32\SRP.pwn(5771) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Error lines:
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
Create3DTextLabel("Bussiness for Sale!",COLOR_LIGHTBLUE, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]+1,130,0,1);
//AddStaticPickup(1272, 2, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]);
//pickups++;*/
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "Bussiness Owned by %s",BizzInfo[h][bOwner]);
Create3DTextLabel(string1,COLOR_YELLOW,BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]+1,130,0,1);
//AddStaticPickup(1239, 2, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]);
//pickups++;
}
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
Create3DTextLabel("Small Bussiness for Sale!",COLOR_LIGHTBLUE,SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]+1,130,0,1);
//AddStaticPickup(1272, 2, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]);
//pickups++;
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "Small Bussiness Owned by %s",SBizzInfo[h][sbOwner]);
Create3DTextLabel(string1,COLOR_YELLOW,SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]+1,130,0,1);
//AddStaticPickup(1239, 2, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]);
//pickups++;
}
}
}
/*pickups = pickups + 9;*/
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
Create3DTextLabel("House for Sale!",COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,130,0,1);
//AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
//pickups++;
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "House Owned by %s",HouseInfo[h][hOwner]);
Create3DTextLabel(string1,COLOR_YELLOW,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,130,0,1);
//AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
//pickups++;*/
}
}
}
Anyone ? :/

And yes I've included a_samp!
Reply
#2

Make sure you have the new includes. Download the server package from http://files.sa-mp.com/samp03asvr_R7_win32.zip
Reply
#3

Oh man INDENT!

pawn Код:
new
        string[144];
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0) {
            Create3DTextLabel("Bussiness for Sale!", COLOR_LIGHTBLUE, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]+1,130,0,1);
            //AddStaticPickup(1272, 2, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]);
            //pickups++;
        }

        if(BizzInfo[h][bOwned] == 1) {
            format(string, sizeof(string), "Bussiness Owned by %s", BizzInfo[h][bOwner]);
            Create3DTextLabel(string, COLOR_YELLOW, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]+1,130,0,1);
            //AddStaticPickup(1239, 2, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]);
            //pickups++;
        }

        if(SBizzInfo[h][sbOwned] == 0) {
            Create3DTextLabel("Small Bussiness for Sale!", COLOR_LIGHTBLUE, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]+1,130,0,1);
            //AddStaticPickup(1272, 2, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]);
            //pickups++;
        }

        if(SBizzInfo[h][sbOwned] == 1) {
            format(string, sizeof(string), "Small Bussiness Owned by %s", SBizzInfo[h][sbOwner]);
            Create3DTextLabel(string, COLOR_YELLOW, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]+1,130,0,1);
            //AddStaticPickup(1239, 2, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]);
            //pickups++;
        }

        if(HouseInfo[h][hOwned] == 0) {
            Create3DTextLabel("House for Sale!", COLOR_GREEN, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,130,0,1);
            //AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            //pickups++;
        }

        if(HouseInfo[h][hOwned] == 1) {
            format(string, sizeof(string), "House Owned by %s", HouseInfo[h][hOwner]);
            Create3DTextLabel(string, COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,130,0,1);
            //AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            //pickups++;*
        }
    }
Reply
#4

Okay I used old Pawno compiler
Anyway now I added 3dTextLabels. Works fine for : Owned House, Not Owned House, Not Owned Biz, Not Owned SBiz.

SS of "owned Biz and owned sbizz":





Here's code for Owned Sbiz and Owned Biz!

pawn Код:
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "%s Owned by %d Level: %d Enter Cost: %d",SBizzInfo[h][sbDiscription],SBizzInfo[h][sbOwner],SBizzInfo[h][sbLevel],SBizzInfo[h][sbEntcost]);
Create3DTextLabel(string1,COLOR_YELLOW,SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]+1,100,0,1);
//AddStaticPickup(1239, 2, SBizzInfo[h][sbEntrancex], SBizzInfo[h][sbEntrancey], SBizzInfo[h][sbEntrancez]);
//pickups++;
}
}
}
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 1)
{ new string[256];
{ new string1[256];
format(string1, sizeof(string), "%s Owned by %d Level: %d Enter Cost: %d",BizzInfo[h][bDiscription],BizzInfo[h][bOwner],BizzInfo[h][bLevel],BizzInfo[h][bEntcost]);
Create3DTextLabel(string1,COLOR_YELLOW,BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]+1,100,0,1);
//AddStaticPickup(1239, 2, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez]);
//pickups++;
}
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)