[Ajuda] TextDraw bugadinho'
#1

Da uma ajudinha ae?
As text draws n ta aparecendo quando entro na pickup da casa e quando conecta no servidor ela sai contando os ids igual um doido de 0 a 1024
pawn Код:
forward CheckInfos();
public CheckInfos()
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; ++i)
{
for(new h = 0; h < sizeof(HouseInfo); ++h)
{
if(IsPlayerInRangeOfPoint(i,1.0,HouseInfo[ h ][ hEntrancex ],HouseInfo[ h ][ hEntrancey ],HouseInfo[ h ][ hEntrancez ]))
{
if(HouseInfo[ h ][ hOwned ] == 1)
{
if(HouseInfo[ h ][ hRentabil ] == 0)
{
format(string,sizeof(string),"~y~#~p~Casa ID~b~:~p~ %d ~g~Use~y~: ~r~/InfoCasa",h);
TextDrawSetString(tInformacoes,string);
}
else
{
format(string,sizeof(string),"~y~#~p~Casa ID~b~:~p~ %d ~g~Use~y~: ~r~/InfoCasa",h);
TextDrawSetString(tInformacoes,string);
}
TextDrawShowForPlayer(i, Text:tInformacoes);
if(HouseReload[ i ] == 0)
{
format(string2,sizeof(string2),"Vocк estб na frente da casa de %s.",HouseInfo[ h ][ hOwner ]);
SendClientMessage(i,-1,string2);
SendClientMessage(i,0x008080AA,"{008080}[ COMANDOS ]{FFFFFF} /entrar,/ds (gritar),/arrombar (500+forзa),/baterporta.");
HouseReload[ i ] = 20;
}
}
else
{
format(string,sizeof(string),"~y~#~p~Casa ID~b~:~p~ %d ~g~Use~y~: ~r~/InfoCasa",h);
TextDrawSetString(tInformacoes,string);
}
TextDrawShowForPlayer(i, Text:tInformacoes);
}
else
{
TextDrawHideForPlayer(i, Text:tInformacoes);
}
}
}
return 1;
}
Reply
#2

ja q й sу uma mensagem pq vc n usa gametexT?
Reply
#3

'-' ahh so mais text draw msm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)