*** This title is not descriptive - ******
#7

TextDrawShowForPlayer requires a textdraw ID, you need to first create a textdraw and then assign a shitload of variables to it. You can then use TextDrawSetString. In your example, you would need to create a textdraw for every single playerid.

Here is an example of what you would need to do:

Under OnGameModeInit:
Код:
	for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
	{
		
		tdHealth[playerid] = TextDrawCreate(505.099975, 401.000000, "Health: 100.00");
		TextDrawBackgroundColor(tdHealth[playerid], 255);
		TextDrawFont(tdHealth[playerid], 2);
		TextDrawLetterSize(tdHealth[playerid], 0.390000, 1.700000);
		TextDrawColor(tdHealth[playerid], -1);
		TextDrawSetOutline(tdHealth[playerid], 1);
		TextDrawSetProportional(tdHealth[playerid], 1);
	}
You can then change then ShowTextDrawForPlayer(playerid, tdHealth[playerid]); and TextDrawSetString, to change the values.
Reply


Messages In This Thread
*** This title is not descriptive - ****** - by 9903286 - 26.11.2012, 01:36
Re: Help with script error! - by Scenario - 26.11.2012, 01:50
Re: Help with script error! - by 9903286 - 26.11.2012, 01:52
Re: Help with script error! - by 9903286 - 26.11.2012, 02:05
Re: Help with script error! - by Scenario - 26.11.2012, 02:37
Re: Help with script error! - by 9903286 - 26.11.2012, 02:41
Re: *** This title is not descriptive - ****** - by Intoxicated - 26.11.2012, 19:25
Re: Help with script error! - by Vince - 26.11.2012, 19:30
Re: Help with script error! - by Scenario - 26.11.2012, 20:04

Forum Jump:


Users browsing this thread: 4 Guest(s)