3dtextlabel
#1

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]);
Reply
#2

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,) ; 
Reply
#3

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)
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)