[AJUDA] erro no code? - 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] erro no code? (
/showthread.php?tid=339973)
[AJUDA] erro no code? -
goku114 - 05.05.2012
oi queria saber se tem algum erro aqui
porque no meu GM nao da erro mas tbm nao mostra a procura
aqui esta o codigo esse codigo era pra aparecer o nivel deprocurado em cima da cabeзa mas nгo aparece nada
ja testei em outros players '-' pq em mim eu sei que nao aparece
pawn Код:
forward CriarChatBubble(); isso vai nas forward
public CriarChatBubble()
{
new VBString[24];
for(new x, y = GetMaxPlayers(); x != y; x++)
if(WantedPoints[x] >= 1)
{
format(VBString, sizeof VBString,"PROCURADO - Nнvel %d",WantedPoints[x]);
SetPlayerChatBubble(x, VBString, 0xFF0000AA, 100.0, 10000);
}
Re: [AJUDA] -
BreakDriFT - 05.05.2012
Porque voces usa ChatBubble em . :N n Consigo intender.
Re: [AJUDA] -
Tiu_DaColombia - 05.05.2012
pawn Код:
forward TextProcu();
SetTimer("TextProcu", 1000, true);
public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
if(GetPlayerWantedLevel(i))
{
format(string,256,"**PROCURADO[%d]**",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, 0x87413BFF, 100.0, 10000);
}
}
}
tenta esse manolo.
Re: [AJUDA] erro no code? -
CidadeNovaRP - 05.05.2012
Tente
:
pawn Код:
forward TextProcu();
SetTimer("TextProcu", 1000, true);
public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[30];
if(GetPlayerWantedLevel(i) > 0)
{
format(string, sizeof(string), "**PROCURADO[%d]**", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, string, 0x87413BFF, 100.0, 1000);
}
}
}
Re: [AJUDA] erro no code? -
Felipe_Wesker - 05.05.2012
Ops, topico errado