SA-MP Forums Archive
3dtextlabel - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3dtextlabel (/showthread.php?tid=259633)



3dtextlabel - iGetty - 05.06.2011

How could I make a create3dtextlabel, when I have a business, when there is these:

pawn Code:
BusinessInfo[BusName], BusinessInfo[BusCost], BusinessInfo[BusSell], BusinessInfo[BusEarn], BusinessInfo[BusOwner]
I have this, but it fails :$,

pawn Code:
Create3DTextLabel("%s ~n~~r~Cost price: $%d ~b~Sale price: $%d ~n~ ~g~Earn amount: $%d~n~~w~Owner: %s(%d)",0x008080FF,1960.3783, 1345.1572, 15.3746,40.0,0, BusinessInfo[BusName], BusinessInfo[BusCost], BusinessInfo[BusSell], BusinessInfo[BusEarn], BusinessInfo[BusOwner]);



Re: 3dtextlabel - LZLo - 05.06.2011

https://sampwiki.blast.hk/wiki/Create3DTextLabel

PHP Code:
Create3DTextLabel(text[], colorFloat:XFloat:YFloat:ZFloat:DrawDistancevirtualworldtestLOS); 
so

PHP Code:
new yostring[128];
format(yostring128"%s ~n~~r~Cost price: $%d ~b~Sale price: $%d ~n~ ~g~Earn amount: $%d~n~~w~Owner: %s(%d)",BusinessInfo[BusName], BusinessInfo[BusCost], BusinessInfo[BusSell], BusinessInfo[BusEarn], BusinessInfo[BusOwner]);
Create3DTextLabel(yostring0x008080FF,1960.37831345.157215.374640.0,0,) ; 



Re: 3dtextlabel - geerdinho8 - 05.06.2011

pawn Code:
new name[MAX_PLAYER_NAME], string[44];
format(string, sizeof(string), ("%s ~n~~r~Cost price: $%d ~b~Sale price: $%d ~n~ ~g~Earn amount: $%d~n~~w~Owner: %s(%d)",BusinessInfo[BusName], BusinessInfo[BusCost], BusinessInfo[BusSell], BusinessInfo[BusEarn], BusinessInfo[BusOwner]);
Create3DTextLabel(string,0x008080FF, 1960.3783, 1345.1572, 15.3746,40.0,0, 0)



Re: 3dtextlabel - Amit_B - 05.06.2011

Quote:
Originally Posted by geerdinho8
View Post
pawn Code:
new name[MAX_PLAYER_NAME], string[44];
format(string, sizeof(string), ("%s ~n~~r~Cost price: $%d ~b~Sale price: $%d ~n~ ~g~Earn amount: $%d~n~~w~Owner: %s(%d)",BusinessInfo[BusName], BusinessInfo[BusCost], BusinessInfo[BusSell], BusinessInfo[BusEarn], BusinessInfo[BusOwner]);
Create3DTextLabel(string,0x008080FF, 1960.3783, 1345.1572, 15.3746,40.0,0, 0)
string of 44 length? it's not the problem solution, it will just crash the server.