[Ajuda] TextDraw.
#1

Hello amigos do fуrum sa-mp, estou com um problema na minha textdraw, nгo sei se fiz algo errado, vejam se o cуdigo estб errado...

OnGameModeInit:

Code:
	ServerLogo2 = TextDrawCreate(354.000000, 423.000000, "Matou: %d    Morreu: %d    Level: %d    EXP: %d/%d");
TextDrawBackgroundColor(ServerLogo2, 255);
TextDrawFont(ServerLogo2, 2);
TextDrawLetterSize(ServerLogo2, 0.280000, 2.299999);
TextDrawColor(ServerLogo2, -65281);
TextDrawSetOutline(ServerLogo2, 0);
TextDrawSetProportional(ServerLogo2, 1);
TextDrawSetShadow(ServerLogo2, 1);
SetTimer("CheckInfo", 1000, true);
Publics:

Code:
public CheckInfo()
{
	for(new i; i < MAX_PLAYERS; i++)
	{
	    new str[200];
	    format(str, sizeof str, "~Matou: %d    Morreu: %d    Level: %d    EXP: %d/%d", PlayerInfo[i][Matou], PlayerInfo[i][Morreu], GetPlayerScore(i), PlayerInfo[i][Exp], MAX_EXP);
	    TextDrawSetString(ServerLogo2, str);
	}
 }
O que estб aparecendo:

Reply
#2

isso e pq tem outra nao deve ser dessa ai, procura o texto que ta nela no gamemode.
Reply
#3

Tire o "~" no format.
Reply
#4

Agora nгo estб aparecendo a quantidade de EXP, fica sу 0/300...

edit; desculpa friends, jб arrumei..
agradeзo a atenзгo. +rep pros dois.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)