- 0
[GF/RP] 3dtextlabel house
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
gabbii
am incercat sa bag 3dtextlabel la case, bizuri si sbizuri si am urmatoarele erori:
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