Business - 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: Business (
/showthread.php?tid=273338)
Business -
Serifukas - 01.08.2011
Hi Everybody.
I want to make business system with 3dtextlabel i have that business code :
Код:
forward Payday();
enum bitem
{
pay,
bizprice,
name[128],
bcash,
own_name[MAX_PLAYER_NAME]
}
new bussinesDB[500][bitem];
stock CreateBussiness(bpay,bprice,bname[],Float:x,Float:y,Float:z)
{
new busid = CreatePickupA(1318 , 2,x,y,z);
bussinesDB[busid][pay]=bpay*4;
bussinesDB[busid][bizprice]=bprice;
strmid(bussinesDB[busid][name],bname,0,128,128);
return busid;
}
This is with no 3dlabel i want to make it with 3dlabel.
That 3dlabel show price business name and if it purchased show player name.
If someone can something suggest.
Please suggest
Re: Business -
PhoenixB - 01.08.2011
Create3DTextLabel
Re: Business -
Serifukas - 01.08.2011
I know this but how to do it ? with price,name owner...
Re: Business -
=WoR=Varth - 02.08.2011
pawn Код:
new string[128];
format(string,sizeof(string),"%s\n %d",bname,bprice);//I don't even know \n is work with 3d Text or not
Update3DTextLabelText(Your3DText,color,string);