[Ajuda] TextDraw bugado ' -'
#9

Quote:
Originally Posted by Carlos001
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playerid)
{
    
//...
    
new str[128];
    
format(strsizeof(str), "Matou: ~h~~g~%d"pStats[playerid][pMatou]);
    
PlayerTextDrawSetString(playeridStatusMatou[playerid], str);
    
format(strsizeof(str), "Morreu: ~h~~r~%d"pStats[playerid][pMorreu]);
    
PlayerTextDrawSetString(playeridStatusMorreu[playerid], str);
    
//para quando ele nascer atualizar as TD
    
return 1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
//...
    
new str[128];
    
format(strsizeof(str), "Matou: ~h~~g~%d"pStats[playerid][pMatou]);
    
PlayerTextDrawSetString(playeridStatusMatou[playerid], str);
    
format(strsizeof(str), "Morreu: ~h~~r~%d"pStats[playerid][pMorreu]);
    
PlayerTextDrawSetString(playeridStatusMorreu[playerid], str);
    
//Assim irar atualizar apenas quando ele morrer/matar alguem
    
return 1;

Muito obrigado !
Reply


Messages In This Thread
TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 18:33
Re: TextDraw bugado ' -' - by ViniBorn - 29.03.2017, 19:18
Re: TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 19:56
Re: TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 20:23
Re: TextDraw bugado ' -' - by Rato22 - 29.03.2017, 20:28
Re: TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 20:34
Re: TextDraw bugado ' -' - by ViniBorn - 29.03.2017, 20:59
Re: TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 21:46
Re: TextDraw bugado ' -' - by ThiagoGamemodes - 29.03.2017, 23:04

Forum Jump:


Users browsing this thread: 2 Guest(s)