26.11.2012, 19:25
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:
You can then change then ShowTextDrawForPlayer(playerid, tdHealth[playerid]); and TextDrawSetString, to change the values.
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); }