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
#2

What exactly are you trying to say?
Reply
#3

What is the Problem
Reply
#4

You will basically be copying the code you have there, but removing it from there and placing it OnGameModeInit. Then changing the game text lines to text labels using the same already-formatted string.
Reply
#5

Solved!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)