dimanche 17 juillet 2016

[Ajuda] Problema com TextDraw.

Let's block ads! (Why?)



[Ajuda] Problema com TextDraw.

Little Clucker

 
JacKPanK's Avatar
 

Join Date: Dec 2015

Posts: 18

Reputation: 0

ExclamationProblema com TextDraw.

Gente pelo amor de deus me ajuda nisso.
Eu entro no servidor e fica tudo perfeito, só que quando entra outro player ele se mistura com a hora já fiz de tudo pra tentar arrumar e não consigo.

PHP Code:

#include <a_samp>
#include <dini>
new Text:ScoreTextDraw[MAX_PLAYERS],Text:Kill[MAX_PLAYERS],Text:morte[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
SetTimer("AtualizarKill"1000true);
SetTimer("AtualizarMorte"1000true);
SetTimer("AtualizarScore"1000true);
new 
0;
ScoreTextDraw[x] = TextDrawCreate(52.0000316.0000"Level:");
TextDrawBackgroundColor(ScoreTextDraw[x], 255);
TextDrawFont(ScoreTextDraw[x], 1);
TextDrawLetterSize(ScoreTextDraw[x], 0.51991.6000);
TextDrawColor(ScoreTextDraw[x], -1);
TextDrawSetOutline(ScoreTextDraw[x], 1);
new 
0;
Kill[k] = TextDrawCreate(52.0000286.0000"Kill:");
TextDrawBackgroundColor(Kill[k], 255);
TextDrawFont(Kill[k], 1);
TextDrawLetterSize(Kill[k], 0.51991.6000);
TextDrawColor(Kill[k], -1);
TextDrawSetOutline(Kill[k], 1);
new 
0;
morte[m] = TextDrawCreate(52.0000301.0000"Mortes:");
TextDrawBackgroundColor(morte[m], 255);
TextDrawFont(morte[m], 1);
TextDrawLetterSize(morte[m], 0.51991.6000);
TextDrawColor(morte[m], -1);
TextDrawSetOutline(morte[m], 1);
return 
1;
}
forward AtualizarScore();
public 
AtualizarScore()
{
for(new 
0GetMaxPlayers(); != yx++)
{
if(!
IsPlayerConnected(x)) continue;
new 
STR[26];
format(STR26"~r~Level:~w~%d"GetPlayerScore(x));
TextDrawShowForPlayer(xScoreTextDraw[x]);
TextDrawSetString(ScoreTextDraw[x], STR);
}
return 
true;
}
forward AtualizarKill(playerid);
public 
AtualizarKill(playerid)
{
for(new 
0GetMaxPlayers(); != lk++)
{
new 
nome[30];
new 
arq[30];
format(arq,sizeof arq,"CONTAS/%s.ini",nome[playerid]);
if(!
IsPlayerConnected(k)) continue;
new 
Killl[31];
format(Killl31"~r~Kill:~w~%d"dini_Int(arq,"Kill"));
TextDrawShowForPlayer(kKill[k]);
TextDrawSetString(Kill[k], Killl);
}
return 
true;
}
forward AtualizarMorte(playerid);
public 
AtualizarMorte(playerid)
{
for(new 
0GetMaxPlayers(); != em++)
{
new 
nome[30];
new 
arq[30];
format(arq,sizeof arq,"CONTAS/%s.ini",nome[playerid]);
if(!
IsPlayerConnected(m)) continue;
new 
mortee[30];
format(mortee30"~r~Mortes:~w~%d"dini_Int(arq,"Morte"));
TextDrawShowForPlayer(m,morte[m]);
TextDrawSetString(morte[m], mortee);
}
return 
true;

__________________

Aucun commentaire:

Enregistrer un commentaire