28.04.2015, 04:52
Fiz certinho galera, PlayerTextDraw, as text do gm nгo sumiram, mais agora, a text fps nгo aparece... olha o passo...
Nгo aparece a Text, me ajudem
pawn Код:
new PlayerText:TxdStatus3[MAX_PLAYERS];
Em gamemodeinit:
for(new i; i < GetMaxPlayers(); i++)
{
TxdStatus3[i] = CreatePlayerTextDraw(i,509.000000, 364.000000, " "); //FPS: 100
PlayerTextDrawBackgroundColor(i,TxdStatus3[i], 255);
PlayerTextDrawFont(i,TxdStatus3[i], 1);
PlayerTextDrawLetterSize(i,TxdStatus3[i], 0.250000, 1.400000);
PlayerTextDrawColor(i,TxdStatus3[i], -1);
PlayerTextDrawSetOutline(i,TxdStatus3[i], 1);
PlayerTextDrawSetProportional(i,TxdStatus3[i], 1);
}
forward UpdateTxDStatus(playerid);
public UpdateTxDStatus(playerid)
{
new ppFPS[42];
format(ppFPS,sizeof(ppFPS),"FPS: %i",GetPlayerFPS(playerid));
PlayerTextDrawSetString(playerid,TxdStatus3[playerid],ppFPS);
return 1;
}
Em OnPlayerSpawn:
TextDrawShowForPlayer(playerid, TxdStatus3[playerid]);