3DText
#1

Hello!
Some weeks ago I followed a tutorial to create some business,everything is fine but I tought to convert the GameText showed to you when you enter in a BusinessPickup to a 3DTextLabel.I've seen GarHouse but my mind is still ~??~.
Here is the "code" I have been fighting with.

Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
	new string[256];
	for(new b = 1;b < sizeof(BusinessInfo);b++)// Loopd through all the businesses again.
	{
		if(pickupid == BusinessInfo[b][bOutsideIcon])//Checks if it's a biz pickup.
		{
			if(BusinessInfo[b][bOwned] == 0)//Checks if it is owned.
			{
				format(string, sizeof(string), "~g~Name:~w~%s~n~~w~This business is ~g~for sale!~n~~r~Price:~g~%i~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bPrice], b);//Formats a string with all the info.
				GameTextForPlayer(playerid, string, 3000, 3);
			}
			if(BusinessInfo[b][bOwned] == 1)//Checks if it is owned.
			{
				format(string, sizeof(string), "~g~Name:~w~%s~n~~g~Owner:~w~%s~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bOwner], b);//Formats a string with all the info.
				GameTextForPlayer(playerid, string, 3000, 3);
			}
		}
	}
    return 1;
}
This is not a script request,this is just an ideea request.You explain me your reasoning and I script it.Thank you!
Reply


Messages In This Thread
3DText - by SumX - 28.09.2012, 18:24
Re: 3DText - by Mr.Anonymous - 28.09.2012, 19:40
Re: 3DText - by CROSS_Hunter - 28.09.2012, 19:47
Re: 3DText - by zDevon - 28.09.2012, 19:47
Re: 3DText - by SumX - 28.09.2012, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)