Jump to content
  • 0

[GF/RP] 3dtextlabel house


Question

Posted

am incercat sa bag 3dtextlabel la case, bizuri si sbizuri si am urmatoarele erori:

C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47481) : error 017: undefined symbol "SBizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47483) : error 017: undefined symbol "SBizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47487) : error 017: undefined symbol "SBizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47489) : error 017: undefined symbol "SBizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47502) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47504) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47508) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47510) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47516) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47518) : error 017: undefined symbol "HouseLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47535) : error 017: undefined symbol "BizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47537) : error 017: undefined symbol "BizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47541) : error 017: undefined symbol "BizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47543) : error 017: undefined symbol "BizzLabel"
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(48127) : warning 209: function "CustomPickups" should return a value
C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(48128) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


15 Errors.

uitati linile

[pawn]if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)

{

for(new h = 0; h < sizeof(SBizzInfo); h++)

{

if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

{

format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);

GameTextForPlayer(i, string, 5000, 3);

return 1;

}

if(PlayerToPoint(30.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

{

if(SBizzInfo[h][sbOwned] == 1)

{

    Delete3DTextLabel(Text3D:SBizzLabel);

    format(string, sizeof(string), "%s\nOwner: {F7FAF9}%s\n{2672ED}Bizz Fee: {F7FAF9}%d$",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbEntranceCost]);

                            SBizzLabel = Create3DTextLabel(string ,COLOR_GREEN,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20,0,1);

}

else

{

    Delete3DTextLabel(Text3D:SBizzLabel);

    format(string, sizeof(string), "%s\n {2672ED}Price: {F7FAF9}$%d\n{2672ED}Level: {F7FAF9}%d\n{2672ED}type /buybiz to buy this business.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);

                            SBizzLabel = Create3DTextLabel(string ,COLOR_GREEN,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20,0,1);

}

return 1;

}

}

for(new h = 0; h < sizeof(HouseInfo); h++)

{

if(PlayerToPoint(30.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))

{

if(HouseInfo[h][hOwned] == 1)

{

if(HouseInfo[h][hRentabil] == 0)

{

                                Delete3DTextLabel(Text3D:HouseLabel);

        format(string, sizeof(string), "House %d \n Owner: {F7FAF9}%s\n{5DCC18}Level: {F7FAF9}%d",HouseInfo[h][hWorld],HouseInfo[h][hOwner],HouseInfo[h][hLevel]);

                                HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

}

else

{

        Delete3DTextLabel(Text3D:HouseLabel);

        format(string, sizeof(string), "House %d\nOwner: {F7FAF9}%s\n {4CA813}Rent: {F7FAF9}$%d\n{4CA813}Level: {F7FAF9}%d\n{4CA813}type /rentroom to rent a room.",HouseInfo[h][hWorld],HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);

                HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

}

return 1;

}

else

{

    Delete3DTextLabel(Text3D:HouseLabel);

                            format(string,sizeof(string),"For Sale\n {4CA813}Info: {F7FAF9}%s\n{4CA813}Price: {F7FAF9}%d$\n{4CA813}Level: {F7FAF9}%d\n{4CA813}type /buyhouse to buy this house.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

            HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

        }

return 1;

}

}

for(new h = 0; h < sizeof(BizzInfo); h++)

{

if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))

{

format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);

GameTextForPlayer(i, string, 5000, 3);

return 1;

}

if(PlayerToPoint(30.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))

{

if(BizzInfo[h][bOwned] == 1)

{

    Delete3DTextLabel(Text3D:BizzLabel);

    format(string, sizeof(string), "%s\n{2672ED}Owner: {F7FAF9}%s\n{2672ED}Fee: {F7FAF9}$%d\n{2672ED}type /enter to enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]);

                            BizzLabel = Create3DTextLabel(string ,COLOR_GREEN,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20,0,1);

}

else

{

                            Delete3DTextLabel(Text3D:BizzLabel);

    format(string, sizeof(string), "%s\n{2672ED}Price: {F7FAF9}%d$\n{2672ED}Level: {F7FAF9}%d\n{2672ED}type /buybiz to buy this business.",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);

                            BizzLabel = Create3DTextLabel(string ,COLOR_GREEN,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20,0,1);

}

return 1;

}

}

}[/pawn]

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.