[Ajuda] Tag de procurado nгo funciona ?
#21

Quote:
Originally Posted by FerrariL
View Post
Faзa um debug para verificar o que estб errado,Olhe em cada SetTimer.
como faзo isso ?
Reply
#22

Olha os settimer que ta atualizando suas public...

vк se nгo tem nenhuma settimer com '1000' = 1 Segundo com ' SendClientMessage '

Usa daquele modo que eu postei, peguei da minha antiga gamemode!

Obs: Espero que vc esteja testando com outra pessoa, pq vc propio n vк a tag encima de vc! '------'
Reply
#23

A aqui no meu gm tem umas funзхes que comeзam com BPS::
eu n teria q colocar BPS:: no lugar de public ne ?


exemplo

Code:
BPS::SetPlayerAttachedObjectEx(Modelid, SlotReal, playerid, index)
{
 	if(index < 10)
	{
    	ItemSlotP[playerid][index] = SlotReal;
    	ItemSlotA[playerid][SlotReal] = index;
    	SlotDItem[playerid][index] = Modelid;
    }
}
Reply
#24

Dentro das callbacks que sгo chamadas pelo SetTimer vocк usa a funзгo print ou printf para imprimir formatado.
Um exemplo pra ficar mais fбcil:

PHP Code:
public Atualizar(playerid)  
{  
    print(
"Callback Atualizar estб em execuзгo");
    new 
Str[50]; 
    if(
GetPlayerWantedLevel(playerid) > 0)  
    {  
        print(
"O level de procurado do jogador й maior que 0");
        
Delete3DTextLabel(LabelProc[playerid]);  
        
format(Str,sizeof(Str),"Procurado Nнvel: %d",GetPlayerWantedLevel(playerid)); 
        
Label[playerid] = Create3DTextLabel(Str0xFF0000AA30.040.050.0100.00);  
        
Attach3DTextLabelToPlayer(Label[playerid], playerid0.00.00.3);  
    }  
    print(
"Callback Finalizada");
    return 
1;  

Caso a mensagem seja imprimida a callback estб funcionando perfeitamente.
Reply
#25

Quote:
Originally Posted by AutoMatic2
View Post
Olha os settimer que ta atualizando suas public...

vк se nгo tem nenhuma settimer com '1000' = 1 Segundo com ' SendClientMessage '

Usa daquele modo que eu postei, peguei da minha antiga gamemode!

Obs: Espero que vc esteja testando com outra pessoa, pq vc propio n vк a tag encima de vc! '------'
Code:
	SetTimer("AtualizarChatBubble", 100, true); //Eu costumo deixar 100 msm, atualiza mais rбpido, Mas o normal й 1000 .-.
//---------------------- Timers -----------------------
	SetTimer("RandomServerNames",7000, 1);
	faztime = SetTimer("Fazenda", 600000, 1);
    SetTimer("CheckAFK",60000,true);// afk mode
    SetTimer("Velocimetro", 500, 1);
	SetTimer("SendMensagens",120000,1);
    SetTimer("SetPlayerUnjail", 1000, 1);
	SetTimer("OtherTimer", 1000, 1);
	SetTimer("CarCheck", 40000, 1);
	SetTimer("CustomPickups", 1000, 1);
	SetTimer("PiscarTD", 15000, 1);
	SetTimer("Spectator", 2000, 1);
	SetTimer("Production", 300000, 1);
	SetTimer("CheckGas", 15000, 1);
    SetTimer("reloginho",1000,1);
    SetTimer("OnplayerAtualizador",1000,1);
    SetTimer("UpdateDrogas", tempodrogas*70000, 1);
    SetTimer("AllCheater", 1000, true);
    SetTimer("CriarIncendio", 20000*25, 0);
    SetTimer("AtualizarRank", 40000*20, 1);
   // SetTimer("TextProcu",1000,true);
   //SetTimer("TextProcu", 1500, true);
Reply
#26

Quote:
Originally Posted by AutoMatic2
View Post
Olha os settimer que ta atualizando suas public...

vк se nгo tem nenhuma settimer com '1000' = 1 Segundo com ' SendClientMessage '

Usa daquele modo que eu postei, peguei da minha antiga gamemode!

Obs: Espero que vc esteja testando com outra pessoa, pq vc propio n vк a tag encima de vc! '------'
Eu testo no meu bot .-. dou /su nele ai vejo
Reply
#27

da uma olhada nessa settimer:

PHP Code:
SetTimer("OnplayerAtualizador",1000,1); 
se n for nada, tenta fazer do jeito da pбg 2, no meu deu certo

- Man n tem como ver vc mesmo a tag encima de vc! tem que ter uma pessoa junto pra testar!

Obs: acho que tem como ver pela camera 3° pessoa tbm!
Reply
#28

Quote:
Originally Posted by AutoMatic2
View Post
da uma olhada nessa settimer:

PHP Code:
SetTimer("OnplayerAtualizador",1000,1); 
se n for nada, tenta fazer do jeito da pбg 2, no meu deu certo

- Man n tem como ver vc mesmo a tag encima de vc! tem que ter uma pessoa pra testar!
ok, й isso que eu nгo entendo no meu gm anterior eu colocava qualquer uma e ia de boas, agora nessa eu coloco 100000 0 funciona acho que vou desistir do sv tudo da errado

eu uso bot, tem como eu abrir 50 contas no msm pc
Reply
#29

ja testo ?

PHP Code:
//OnGameModeInit 
SetTimer("AtualizarChatBubble"1000true);  
//Public 
forward AtualizarChatBubble(); 
public 
AtualizarChatBubble() 

    for(new 
0MAX_PLAYERSx++) 
    { 
        if(
GetPlayerWantedLevel(x) == 1
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 1"0xFF0000AA100.0100000); 
        } 
        if(
GetPlayerWantedLevel(x) == 2
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 2"0xFF0000AA100.0100000); 
        } 
        if(
GetPlayerWantedLevel(x) == 3
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 3"0xFF0000AA100.0100000); 
        } 
        if(
GetPlayerWantedLevel(x) == 4
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 4"0xFF0000AA100.0100000); 
        } 
        if(
GetPlayerWantedLevel(x) == 5
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 5"0xFF0000AA100.0100000); 
        } 
        if(
GetPlayerWantedLevel(x) == 6
        { 
            
SetPlayerChatBubble(x"Procurado(a) Nнvel: 6"0xFF0000AA100.0100000); 
        } 
    } 

Reply
#30

Quote:
Originally Posted by AutoMatic2
View Post
da uma olhada nessa settimer:

PHP Code:
SetTimer("OnplayerAtualizador",1000,1); 
se n for nada, tenta fazer do jeito da pбg 2, no meu deu certo

- Man n tem como ver vc mesmo a tag encima de vc! tem que ter uma pessoa junto pra testar!

Obs: acho que tem como ver pela camera 3° pessoa tbm!
linhas :

Code:
if(GetPlayerWantedLevel(playerid) == 1)
f(GetPlayerWantedLevel(playerid) == 2)
if(GetPlayerWantedLevel(playerid) == 3)
if(GetPlayerWantedLevel(playerid) == 4)
if(GetPlayerWantedLevel(playerid) == 5)
if(GetPlayerWantedLevel(playerid) == 6)
erros:

Code:
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118756) : error 017: undefined symbol "playerid"
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118760) : error 017: undefined symbol "playerid"
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118764) : error 017: undefined symbol "playerid"
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118768) : error 017: undefined symbol "playerid"
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118772) : error 017: undefined symbol "playerid"
C:\Users\joao\Desktop\sistema de carro\gamemodes\BRAZIL2.pwn(118776) : error 017: undefined symbol "playerid"
Reply
#31

Enquanto ngm me fala a gamemode tipo a do cvr eu tento ajuda os cara
Se souber me ajuda la no tуpico: GameMode RPG
Reply
#32

PHP Code:
if(GetPlayerWantedLevel(x) == 1)
if(
GetPlayerWantedLevel(x) == 2)
if(
GetPlayerWantedLevel(x) == 3)
if(
GetPlayerWantedLevel(x) == 4)
if(
GetPlayerWantedLevel(x) == 5)
if(
GetPlayerWantedLevel(x) == 6
Eu tinha esquecido de colocar!, mas eu ja tinha atualizado na minha postagem!

Testa lб.
Reply
#33

Quote:
Originally Posted by AutoMatic2
View Post
PHP Code:
if(GetPlayerWantedLevel(x) == 1)
if(
GetPlayerWantedLevel(x) == 2)
if(
GetPlayerWantedLevel(x) == 3)
if(
GetPlayerWantedLevel(x) == 4)
if(
GetPlayerWantedLevel(x) == 5)
if(
GetPlayerWantedLevel(x) == 6
Eu tinha esquecido de colocar!, mas eu ja tinha atualizado na minha postagem!

Testa lб.
obrigado a todos mais uma vez vocкs sгo fodas porйm tкm algum fucking problema no meu gm mesmo que n consigo encontrar pra usar essa tag ;~; boa noite pessoal o/ desisto aqui
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)