[Ajuda] ⚡⚡⚡⚡ Velocimetro com ponteiros⚡⚡⚡⚡⚡
#1

RESOLVIDO [🔓]
Reply
#2

Pera aн to tentando mentalizar o cуdigo...



@Edit aaah agora postou o cуdigo, daн tem um loop de players numa funзгo per-player, com o velocimetro todo em textdraws ao invйs de PlayerTextDraws, faz sentido o lag.
Reply
#3

edit: tendi
Reply
#4

Quote:
Originally Posted by Izaque1998
View Post
seria mais facil vocк olhar ali em cima, mas quer uma bola de cristal? tenho duas. nгo faaзo questгo.
Olhe o edit.

Code:
for(new i; i < 10; i++) 
        TextDrawShowForPlayer(playerid, Velocimetro);

for(new i = 0; i < MAX_PLAYERS; i++) 
          { 
        TextDrawShowForPlayer(playerid, MHP16[i]); 
        } 


forward AttVelo(playerid); 
public AttVelo(playerid) 
{ 
    new string[80]; 
    format(string,sizeof(string),"VELOCIDAD~n~~g~~h~___%dKM/H",GetPlayerSpeed(playerid)); 

    for(new i = 0; i < MAX_PLAYERS; i++){TextDrawSetString(MHP16[i],string);}
Se eu fosse vocк, transformaria a textdraw q indica a velocidade pra playertextdraw e refaria o cуdigo inteiro, tб meio no-sense esse cуdigo, usando muito update atoa, isso tб causando um lag totalmente desnecessбrio...
Reply
#5

Fiz oque vocк falou e saiu o lag, vlw msm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)