SA-MP Forums Archive
[Ajuda] TextDraw bugadinho' - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDraw bugadinho' (/showthread.php?tid=287551)



[Ajuda] TextDraw bugadinho' - Link_ - 03.10.2011

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;
}



Re: TextDraw bugadinho' - Pharrel - 03.10.2011

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


Re: TextDraw bugadinho' - Link_ - 03.10.2011

'-' ahh so mais text draw msm